2 points · by SmartCoder · 11y ago · 7 comments
I'd recommend these args which save memory:
-server This slows startup time but payoff is greater optimization.
-XX:+AggressiveOpts Flips on a variety of options that increase performance.
-XX:MinHeapFreeRatio=1 Lets the JRE give as much RAM as possible back to the OS.
-XX:MaxHeapFreeRatio=2 Lets the JRE give as much RAM as possible back to the OS.
-XX:+UseSerialGC Old-fashioned 'stops the world' garbage collection, but it's the best GC for guaranteeing least memory usage.
360 megs is a rounding error on anything made in the last 7 years.