odd. i noticed significantly less memory usage just testing the string from the OP. went from always sitting at 800mb down to ~200mb (both numbers are with 2 users connected.
The -XX:UseSSE dropped my CPU usage a lot ( tested with a forestfire :wink.gif: )
removed the argument for new heap.
Set a maxgc time.
The XX:-overgcoverheadlimit is that the GC can do multiple GC on different heaps at the same time.
Anyways if some1 else can test the UseSSE thx :smile.gif:
Testing it now.. What you have above but with the 2 512 changed to 4096.. Not sure if it should be higher though or if anything needs to change on weekends I hit 50+ Online..
Also I get spammed by this:
[GC 222180K->76273K(4182144K), 0.0047810 secs]
[GC 222321K->76267K(4182144K), 0.0005470 secs]
[GC 222315K->76194K(4182144K), 0.0003850 secs]
[GC 222242K->76105K(4182144K), 0.0005280 secs]
[GC 222153K->76082K(4182144K), 0.0003920 secs]
[GC 222130K->76093K(4182144K), 0.0005510 secs]
Testing it now.. What you have above but with the 2 512 changed to 4096.. Not sure if it should be higher though or if anything needs to change on weekends I hit 50+ Online..
Also I get spammed by this:
[GC 222180K->76273K(4182144K), 0.0047810 secs]
[GC 222321K->76267K(4182144K), 0.0005470 secs]
[GC 222315K->76194K(4182144K), 0.0003850 secs]
[GC 222242K->76105K(4182144K), 0.0005280 secs]
[GC 222153K->76082K(4182144K), 0.0003920 secs]
[GC 222130K->76093K(4182144K), 0.0005510 secs]
Remove "-verbosegc" and you'll stop getting a verbose display of what the GC does.
The -XX:UseSSE dropped my CPU usage a lot ( tested with a forestfire :wink.gif: )
removed the argument for new heap.
Set a maxgc time.
The XX:-overgcoverheadlimit is that the GC can do multiple GC on different heaps at the same time.
Anyways if some1 else can test the UseSSE thx :smile.gif:
As he asked anyone else confirming this, I have 1,256 ram in my computer, have about 7 people on (friends only) and its a single core FX-55. After the most recent patches my server pretty much refuses people a few hours of uptime. I look at my ram and it is pegged, like the garbage isnt being taken out, same with CPU. If this is confirmed I will run home and try it on my computer!
I have seen several people ask where these scripts are to be added, and still no one answers.
I myself would also like to know where these scripts are added so I can test the difference as well.
SO FOR THE LOVE OF GOD SOMEONE PLEASE SAY WHERE AND HOW TO ADD THESE SCRIPTS, THANK YOU!
If you don't know how you start your server on a command line, you shouldn't be using these flags. Considering the Minecraft website where you downloaded your server from tells you how to do it.
Multiplayer alpha server software
Minecraft alpha multiplayer support is currently under heavy development, and is riddled with bugs. You can help test it, though. It will get better soon, I promise!
If you're running on windows and just want to set up a server easily, download Minecraft_Server.exe, place it anywhere you want, then run it.
If you want to run the server on any other OS, or want to run it without the gui, it's a bit more involved. First, make sure you can use java from the command line. On linux and mac, this should automatically work, but on windows you might want to set up a PATH system variable.
Then download minecraft_server.jar to anywhere, then launch it as:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
If you don't understand what it means to launch a program, click start->run/search and enter "cmd". Congratulations, you have discovered the command prompt.
WAY more consistent CPU use. I haven't seen a single "OMFGITSTIMEFOR100%USAGE" seizure from the java process. It spikes a bit only when auto-saving the world. Thats about it.
Memory use is far more happier as well. I wasn't worried about running out, but it seemed to use some REALLY odd amounts of memory at time. Now thats more consistent as well.
Thanks for this thread. Its exactly the help I was looking for :smile.gif:
@Paul22 its helps to restart the server from time to time. Just to clear everything
@kane If your run on 64bit yes it could be helpfull to put it higher. But just check the usage in peak. Keep up the youtube's :wink.gif:
@Legend glad to hear
If any1 get error's or find that it didnt improve let me know ! i'm only running a small friend server so cant be 100% sure for the big ones.
No worries, I do that, have a script set up that does it actually. I am just worried about the inconsistent RAM and CPU usage, I will try your commands when I get home. Thank you very much for finding this!!
The -XX:UseSSE dropped my CPU usage a lot ( tested with a forestfire :wink.gif: )
removed the argument for new heap.
Set a maxgc time.
The XX:-overgcoverheadlimit is that the GC can do multiple GC on different heaps at the same time.
Anyways if some1 else can test the UseSSE thx :smile.gif:
This made such a HUGE difference on my server!!!!!
Rollback Post to RevisionRollBack
http://www.myminecraft.com Survival and creative servers
Teamspeak available, multiple anti-grief measures in place
VIP based whitelist to limit griefing even further.
The -XX:UseSSE dropped my CPU usage a lot ( tested with a forestfire :wink.gif: )
removed the argument for new heap.
Set a maxgc time.
The XX:-overgcoverheadlimit is that the GC can do multiple GC on different heaps at the same time.
Anyways if some1 else can test the UseSSE thx :smile.gif:
This made such a HUGE difference on my server!!!!!
I have a 2.5 GB server, so I place 2048 in my commandline usually. If I were to use your commandline, do I replace the 512M with 2048?
Thanks in advance
Rollback Post to RevisionRollBack
"Common sense is no longer common. Take for granted that every one you meet is an idiot; Every now and then you will be surprised."
With all these patches/bug fixes lately I've had some interesting changes to my CPU usage. Before with 1 player it would idle around 1 or 2%. This was with animals, monsters and health disabled. Now with the latest patch, I have health, animals and monsters enabled - with 1 player it idles, spikes, idles, spikes, idles spikes - consistently from 1% to 4%. If I had UseSSE3, its 1% to 7% instead. Is something else in my startup causing this? I am using Java 1.7 b119, x64. Host OS is an optimized install of w7 x64.
There's an example of what it looks like, note that there are no players in the server. CPU is a q9550. I'm thinking I might re-install 1.6 and give it a try.
Affinity is set to the 3rd core - from the left.
Getting the same results on 1.6 x64, gonna start disabling health/mobs etc...
^^^nvm I take that back, it seems to have gone away for the moment.
is this the latest server file? because i did not test that one yet.
Could you add -verbosegc and -XX:+PrintGCDetails And post the result from it.
Gives me a better understanding what the GC is doing.
I forgot to type Edit:
Moving back to 1.6 x64 seems to have resolved the issue, yes the server file was the latest - tested it with hMod as well and same results. Seems to be resolved for now...!
I figured it out. Animal and Monster spawning set to true is causing that weird fluctuation. Health enabled, those disabled - everything is fine. Enable just monster - fluctuation, enable just animals - fluctuation.
On a side note, for your server when you have peak players on - what do they notice the most on the negative side of things - if they ever complain? I have a few 512mb hosts going and they aren't saying much, except junks seem to load slow. IF you don't mind me asking that is :smile.gif:
Yeah I meant chunks, lack of sleep + caffeine = inability to think slowly haha.
I have an interesting question, how does setting affinity affect Parallel GC Threads? If I force java to one core, even with the command line switch to pull out 4 threads when doing garbage collection, would affinity over ride this and restrict it to 1 core?
2 more small questions. Why do you use UseAdaptiveGCBoundary with your 512mb setup? And what exactly does SurvivorRatio affect?
Meanwhile I abuse your knowledge, I'm also looking into this. Googling just one of these switches brings up a **** ton of information @_@
To you my friend.
Time is time. Code = Lots of time, no matter what.
Testing it now.. What you have above but with the 2 512 changed to 4096.. Not sure if it should be higher though or if anything needs to change on weekends I hit 50+ Online..
Also I get spammed by this:
[GC 222180K->76273K(4182144K), 0.0047810 secs]
[GC 222321K->76267K(4182144K), 0.0005470 secs]
[GC 222315K->76194K(4182144K), 0.0003850 secs]
[GC 222242K->76105K(4182144K), 0.0005280 secs]
[GC 222153K->76082K(4182144K), 0.0003920 secs]
[GC 222130K->76093K(4182144K), 0.0005510 secs]
Check out my Let's Play Series:
Remove "-verbosegc" and you'll stop getting a verbose display of what the GC does.
As he asked anyone else confirming this, I have 1,256 ram in my computer, have about 7 people on (friends only) and its a single core FX-55. After the most recent patches my server pretty much refuses people a few hours of uptime. I look at my ram and it is pegged, like the garbage isnt being taken out, same with CPU. If this is confirmed I will run home and try it on my computer!
I myself would also like to know where these scripts are added so I can test the difference as well.
SO FOR THE LOVE OF GOD SOMEONE PLEASE SAY WHERE AND HOW TO ADD THESE SCRIPTS, THANK YOU!
If you don't know how you start your server on a command line, you shouldn't be using these flags. Considering the Minecraft website where you downloaded your server from tells you how to do it.
If you don't understand what it means to launch a program, click start->run/search and enter "cmd". Congratulations, you have discovered the command prompt.
WAY more consistent CPU use. I haven't seen a single "OMFGITSTIMEFOR100%USAGE" seizure from the java process. It spikes a bit only when auto-saving the world. Thats about it.
Memory use is far more happier as well. I wasn't worried about running out, but it seemed to use some REALLY odd amounts of memory at time. Now thats more consistent as well.
Thanks for this thread. Its exactly the help I was looking for :smile.gif:
No worries, I do that, have a script set up that does it actually. I am just worried about the inconsistent RAM and CPU usage, I will try your commands when I get home. Thank you very much for finding this!!
This made such a HUGE difference on my server!!!!!
http://www.myminecraft.com Survival and creative servers
Teamspeak available, multiple anti-grief measures in place
VIP based whitelist to limit griefing even further.
I have a 2.5 GB server, so I place 2048 in my commandline usually. If I were to use your commandline, do I replace the 512M with 2048?
Thanks in advance
With all these patches/bug fixes lately I've had some interesting changes to my CPU usage. Before with 1 player it would idle around 1 or 2%. This was with animals, monsters and health disabled. Now with the latest patch, I have health, animals and monsters enabled - with 1 player it idles, spikes, idles, spikes, idles spikes - consistently from 1% to 4%. If I had UseSSE3, its 1% to 7% instead. Is something else in my startup causing this? I am using Java 1.7 b119, x64. Host OS is an optimized install of w7 x64.
There's an example of what it looks like, note that there are no players in the server. CPU is a q9550. I'm thinking I might re-install 1.6 and give it a try.
Affinity is set to the 3rd core - from the left.
Getting the same results on 1.6 x64, gonna start disabling health/mobs etc...
^^^nvm I take that back, it seems to have gone away for the moment.
I forgot to type Edit:
Moving back to 1.6 x64 seems to have resolved the issue, yes the server file was the latest - tested it with hMod as well and same results. Seems to be resolved for now...!
On a side note, for your server when you have peak players on - what do they notice the most on the negative side of things - if they ever complain? I have a few 512mb hosts going and they aren't saying much, except junks seem to load slow. IF you don't mind me asking that is :smile.gif:
I have an interesting question, how does setting affinity affect Parallel GC Threads? If I force java to one core, even with the command line switch to pull out 4 threads when doing garbage collection, would affinity over ride this and restrict it to 1 core?
2 more small questions. Why do you use UseAdaptiveGCBoundary with your 512mb setup? And what exactly does SurvivorRatio affect?
Meanwhile I abuse your knowledge, I'm also looking into this. Googling just one of these switches brings up a **** ton of information @_@