JVM Memory Options

/2019-08-28/

Q: In the /bin/q2 script of jPOS, -Xmx1G is set. Will it be ok to set it to -Xmx16G or higher for a Windows Server of 32RAM? Advice and directions will be highly appreciated. Thanks great community.

A: It’s totally OK to increase, but if you increase it, watch out your GC configuration. This blog post is old, and the switches have changed in more recent JVMs, but it’s useful to shed some light on the kind of things that you want to watch out in order to avoid and monitor stop-the-world GC cycles.