AllTheMods / Server-Scripts

Server Startup Scripts
Other
68 stars 38 forks source link

Set -Xms to the same value as -Xmx #19

Open totaldowner opened 6 years ago

totaldowner commented 6 years ago

https://github.com/AllTheMods/Server-Scripts/blob/099683f043bff9f8c64b53b9d71b892a19e9a947/ServerStart.sh#L117

JAVA_ARGS should be modified to reflect this as well. This should improve GC time.

OrdinatorStouff commented 6 years ago

The problem with doing this "by default" is for people that are self-hosting on their personal systems, setting xms to max as well guarantees the host OS can't use the otherwise unused ram

I agree however that it does help JVM optimize GC.... maybe if I can make the script smart enough to perform math on the specific Xmx and have it set to say... half?

I'll look into this -- thanks