As I'm trying to host a FTB server I've come up to the problem that even with a clean install of the OS + java + FTB (direwolf aswell as ultimate) my server uses about 90% cpu (Showing in top) when there is noone online, and goes wild with warnings that the system cant keep up and 300 upto 600% cpu usage when there is about 2 to 4 people online.
Now you might be thinking, are you running this server on a pentium 1 with 32 MB memory, because thats what the performance behavoir feels like. Well I've checked the hardware once more, and the server specs are:
AMD 8350 4GHZ 8 Core CPU
32 GB DDR3 1800 G.skill memory
64 GB SSD Crucial M4
OS: Ubuntu Server LTE 12.04
FTB version: 5.2.1 Direwolf pack
The command java -version gives me:
Java version "1.7.0_21"
Java(TM) SE Runtime environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
To explain a bit more, the basic idea of this machine is that it will be dedicaded to hosting 2 servers: FTB direwolf20 and our craftbukkit server which has been running on our old hardware for 7 months now.
The Craftbukkit server uses about 3~5 % cpu (from top command) with noone online, which I find normal. Now ofcourse FTB would use a bit more CPU, but the fact that its using 90~100% with noone online cannot be good in my eyes. We tested this for a bit, and indeed, this isnt good: There had been 2 players online on the server for testing, not even building advanced machinery, and after 1 night the cpu load had gotten up to 800% and players couldnt even login anymore. The strangest part about this is that the memory usage is extremely low. With extremely low I mean about 160 MB memory usage (~0.4% in top).
The startup scripts I've tried are:
The default script: java -Xms512M -Xmx1G -jar ftbserver.jar
More memory allocated script: java -Xms2G -Xmx8G -jar ftbserver.jar
I've tested with the Direwolf mods and the MCPC Plus Jar and this gives a cpu usage of 15% ish when noone is online, upto 40% when there are 9 people online.
Now the question is: why wouldnt you just host the server with MCPC plus instead.
Well thats what we are doing right now, but as MCPC plus has quite some annoying bugs (which I won't explain in detail as you are not the makers of this jar), I would love to just use the FTB Direwolf20 server (without extra mods or plugins)
I really hope you can help me out on this, and am more than willing to provide any neccesary information, java traces and such to get this problem solved.
Now you might be thinking, are you running this server on a pentium 1 with 32 MB memory, because thats what the performance behavoir feels like. Well I've checked the hardware once more, and the server specs are:
AMD 8350 4GHZ 8 Core CPU
32 GB DDR3 1800 G.skill memory
64 GB SSD Crucial M4
OS: Ubuntu Server LTE 12.04
FTB version: 5.2.1 Direwolf pack
The command java -version gives me:
Java version "1.7.0_21"
Java(TM) SE Runtime environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
To explain a bit more, the basic idea of this machine is that it will be dedicaded to hosting 2 servers: FTB direwolf20 and our craftbukkit server which has been running on our old hardware for 7 months now.
The Craftbukkit server uses about 3~5 % cpu (from top command) with noone online, which I find normal. Now ofcourse FTB would use a bit more CPU, but the fact that its using 90~100% with noone online cannot be good in my eyes. We tested this for a bit, and indeed, this isnt good: There had been 2 players online on the server for testing, not even building advanced machinery, and after 1 night the cpu load had gotten up to 800% and players couldnt even login anymore. The strangest part about this is that the memory usage is extremely low. With extremely low I mean about 160 MB memory usage (~0.4% in top).
The startup scripts I've tried are:
The default script: java -Xms512M -Xmx1G -jar ftbserver.jar
More memory allocated script: java -Xms2G -Xmx8G -jar ftbserver.jar
I've tested with the Direwolf mods and the MCPC Plus Jar and this gives a cpu usage of 15% ish when noone is online, upto 40% when there are 9 people online.
Now the question is: why wouldnt you just host the server with MCPC plus instead.
Well thats what we are doing right now, but as MCPC plus has quite some annoying bugs (which I won't explain in detail as you are not the makers of this jar), I would love to just use the FTB Direwolf20 server (without extra mods or plugins)
I really hope you can help me out on this, and am more than willing to provide any neccesary information, java traces and such to get this problem solved.