I'm getting 100% and above cpu usage in top. Below are my specs: PC: - CPU: Intel i7 2600k (quad core) - RAM: 16GB RAM DDR3 (9GB allocated to the server. This is not a RAM issue tho, i've checked with /debug info of CommandBook) - OS: CentOS 5.5 64bit Software: - Java 1.7.0 (same with 1.6) (JRE) - CraftBukkit #953 - About 43 plugins (Commandbook/Worldedit/WorldGuide/FalseBook/etc) - RToolkit wrapper (server restarter) Other details: - Problem seems to be CraftBukkit related, also happens if i disable most of or all the plugins - Launch params: Code: /usr/java/jre1.7.0/bin/java -Xms9000M -Xmx9000M -Djline.terminal\=jline.UnsupportedTerminal -XX:ParallelGCThreads=8 -server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -jar craftbukkit.jar nogui Problem: CPU usage is abnormally high. When the server starts up, it's at 50% or so (which is fine) but after a few hours, it goes as high as 200% (varies). I measure the CPU usage using top. Top screenshot: View attachment 4817 VisualVM screenshot: View attachment 4816
Just to test, try turning off mobs, and reload, if that works ok, then likely you just need to clamp the max spawn on mobs.
The max spawn of mobs is already clamped at 800 (using PerformanceTweaks). Same happens without any mobs (aggresive) Please ask if you need any more info.
bukkit use one core at 100%, 2 at 200%, etc. think ~120% its normal with 43(!) plugins. we have max. 120% with 19 plugins.
I always thought craftbukkit can't use multithreading Anyway, the problem is that when CPU usage exceeds 100% the lag also starts. And yes, i know 43 plugins are a lot but they are all properly coded. I've read somewhere that the max. recommended number of plugins is 50
sorry, mystake by myself. i mean with that only the "top" results. I thought you think that the cpu is overloaded because the 117%, sorry but it is also on the type of plugins. some plugins consume a lot of resources. so I think the 50 is definitely too much. we run 19, its okay but not perfect
Well, the thing is, until today I haven't got a definitive answer from anyone to tell me whether CraftBukkit supports multithreading or doesn't . I have heard in several places that it doesn't but the fact that the cpu usage goes over 100% indicates me that it does in a way. Also, the cpu usage figure itself isn't a problem for me, but the problem is that there's also lag and that the first few hours the cpu usage stays at 40-50%, even at full capacity (55/55)
Anyone ? I'm really wondering if this is normal or not... I'd appreciate some help here. And sorry for doubleposting.