The high CPU usage thread (Again).

Discussion in 'Bukkit Help' started by anon, May 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    anon

    OK, so, a few weeks - months ago, some people where having extreme CPU usage problems, I myself did, and could only solve it by reseting my map.

    By that time a huge topic was created with many people with the same problem, but nobody could really solve it.

    Now it seems that the problem returned. Many people are reporting that last recomended build of craftbukkit has this issue -and im talking about the recomended one not the 1.6-.

    This thread is to unite everybody that has this probles, and to be easyer for the devs to find what is happening.

    The original old thread:
    http://forums.bukkit.org/threads/high-cpu-usage.8295/

    The reports of people having the exactly same problem now:
    http://forums.bukkit.org/threads/cpu-at-over-100-lag-spikes-galore.18862/
    http://forums.bukkit.org/threads/problem-cpu-loaded.18807/#post-330921
    http://forums.bukkit.org/threads/extremely-high-cpu-usage.18818/
    http://forums.bukkit.org/threads/craftbukkit-798-803-high-cpu.18431/
    http://forums.bukkit.org/threads/terrible-resource-usage-in-803-798.18484/
    http://forums.bukkit.org/threads/cpu-usage-through-the-roof.17531/

    Something appears to be wrong with RB 803. Please if you have this same problem, post your specs here, how you run your craftbukkit, the size of your map, plugins, etc.
     
  2. Hi, I had the same recently (on 1.5) and I fixed it by changing from Windows 7 Basic to Windows 7 Aero...
     
    GehennaGirl likes this.
  3. Offline

    broonie

    Snap, I have the error myself, we did server tickrate tests ( Thanks to @Edward Hand ) and concluded that bukkit was affecting the performance of the server.
     
    GehennaGirl likes this.
  4. Offline

    Bobomaster

    Yeah, that's the problem I had.

    Specs:
    Operating System: Windows 7 Home Premium
    Architecture: x86
    Java: 1.6.0_25

    Since its a problem with my World folder, I've uploaded the whole thing to MediaFire <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 27, 2016
  5. Offline

    Blackstorm72

    My server can easily run a 50 slot, but is limited because of CPU explosives.
    Hopefully it gets looked at, Vanilla on 1.5_02 (Compared to #803) doesn't have this issue. I figured it was plugins, but it isn't.
     
  6. Offline

    MrPendulum

    In my case it was the uncontrollable spawning of squid that caused the issue.

    Do you have a nether world? I noticed that ghasts spawned equally uncontrollably, which upped the cpu usage. I fixed this by using the bMobs plugin to blacklist them.
     
  7. Offline

    Nathan C

    Yeh, I am sure there is something wrong with 803. Why on earth does it matter though?

    803 is Minecraft 1.5 and it is old. If you want a stable 1.5, then why not just downgrade to the next recommended build?
     
  8. Offline

    Bobomaster

    How is it old... its the latest recommended build..
     
  9. Offline

    Nathan C

    It is Minecraft 1.5....we are currently on 1.6, so my point is that they won't even bother with 1.5 no more.

    I don't see how it is that hard to downgrade to the next RB.
     
  10. Offline

    anon

    Its now downgrade, end of line.
    Obviusly some bug just went through the devs tests, and its a bug thathappened before. By that time evilseph could not replicate the issue, and the bug fixed itself with the time. 803 is the last recomended build, if this bug isnt adressed properly, it will probably be present on the next 1.6 RB.
     
  11. Offline

    TnT

    Is the common issue that it runs on Windows? Has anyone experienced the problem with a Linux server?

    Not saying that's a good answer, but at least it may help narrow down the problem.
     
  12. Offline

    anon

    The first time I had this was on a centos server.
    Now I have this again on a ubuntu server, java 7 x64, on a dedi(4gb ram ddr2, core 2 quad q8200), its a different machine then my first server, different map, I started it all over again when I had the issue. I didnt have this on the begining, it started to grow CPU usage as my map grow. I dont have many players, but my map is pretty big, 1.5g big.

    [​IMG]
     
  13. Offline

    Bobomaster

    I have made my world folder available for download, if anyone cares, seeing how that was the problem.
     
  14. Offline

    Bakuhatsu

    @EvilSeph
    Bukkit build 818 is still having those severe cpu issues, imo this issue is more important to get fixed than updating bukkit to the newer minecraft builds.

    Vanilla no longer has the extreme cpu leaks like it had before, but bukkit still has got it, and it started before build 798 even.

    [​IMG]

    The first part is vanilla server on idle, the second part is bukkit server on idle. (Fresh world, no plugins.) As you see it shifts 100% along the cores for some reason.

    Ubuntu 11.10
    Amd Phenom II 810
    8gb ram
     
  15. Offline

    anon

    Its exactly the same behavior I experience. Its continues on 818.
     
  16. Offline

    Vittek

    Same thing here. Pretty much for ever user that joins the Usage on the core used by Bukkit jumps up by 10%,
    And with about 10 users the core reaches 80-100% load pretty much all the time which causes slight lag on the server.
    I tried removing all plugins, new world etc but it just doing it again.

    Running on Win7 64bit Java7 B142 12gb ram and a hexa core at 4.2ghz.

    Issues started popping up badly after 766.
     
  17. Offline

    Flatliner

    Experiencing this exact issue here too on build 819, all was fine on 766 and before.

    Running on Ubuntu 10.04 x64, Java7 B144, 8Gb Ram, Phenom II Quad Core 2.4Ghz
     
  18. Offline

    Bakuhatsu

    There is one semi bad solution, adding -Djline.terminal=jline.UnsupportedTerminal in the startup script will disable the thing that somehow uses tons of cpu for some people, BUT! This can result in severe console spam.

    A solution for the spam if using the Crafty gui is to (if Ubuntu), starting it with "run in terminal" and keep the terminal in the background, I assume it's the same for windows and cmd.
     
  19. Offline

    Nathan C

    Well, the Phenom isn't a very strong CPU, that is why.

    Upgrade to a more powerful CPU, such as the Core i7 Sandy Bridge, and you will see a lot better performance.
     
  20. Offline

    Bakuhatsu

    It's not that issue, I use a phenom which runs very stable. The issue is something with the jline emulation added in 794 which seems to affect some people, there is people running just what you mentioned which get the same issue with 100% shifting between cores as well.

    Such advices is worthless, it's better to try pinpoint the exact issue with the jline emulation instead rather to tell them to upgrade, because in this case the issue seemingly can affect both 64bit, 32bit as well with both amd and intel CPU's.

    So, shush.
     
    Mikecom32 likes this.
  21. Offline

    Lolmewn

    What helped me was disabling TuneUp Utilities Turbo Mode (yes, disabling!). Not sure if ur using that though..
     
  22. Offline

    Bakuhatsu

    I've already told a solution a bit higher up but it's not bulletproof, this might work for those using TuneUp but I assume most who run it on a dedicated computer doesn't even have such installed on it.
     
  23. Offline

    Lolmewn

    Oh right. Never mind then.
     
  24. Offline

    Flatliner

    Rubbish, phenom is plenty strong enough. We routinely have 20 or so people connected with cpu usage averaging around 60% (or less, depending on what they're doing). The problembeing discussed in this thread happens to my server randomly and regardless of the number of people connected. I've seen the problem rear it's head with 1 person in the server before and yet be fine with 20+. So lets forget the hardware and focus on the software.
     
  25. Offline

    Bakuhatsu

    I'll mention it once again, adding:
    -Djline.terminal=jline.UnsupportedTerminal
    To the startup script solves the issue but it has a big potential of spamming the console, to solve this. Simply let the (if you use a gui) start with both the gui + a cmd/terminal window open. It's a temporary fix for now.
     
  26. Offline

    TnT

    Hilarious. I run my server on an Athlon 4600+, and it runs like a charm. A Phenom is much better. Sure, an i7 may out perform it, but a Phenom is no slouch.

    Can I please have people test disabling jline like @Bakuhatsu suggested? Would be nice to see this issue narrowed down and confirmed by others.

    @Bakuhatsu what kind of console spam are you talking about?
     
  27. Offline

    Vittek

    Since I use the remote toolkit, this line was already added by default.
    And I still have the high CPU usage past CB766.
     
  28. Offline

    broonie

    Wow, what a difference this has made so far.
     
  29. Offline

    Bakuhatsu

    Using Crafty gui I get tons of "Unknown console command. Type "help" for help." and I know this has solved it for me including two others. I don't get the spam if I run the gui + terminal though.

    Irony?
     
  30. Offline

    Vittek

    Any news on this issue? I mean is the problem known and being worked on? Getting tired of seeing my core running at 100% non stop with 14 players on.
     
Thread Status:
Not open for further replies.

Share This Page