If you define your JAVA_OPTS as such JAVA_OPTS: -Dprogram.name=run.sh -server -Xms2048m -Xmx4096 -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600
I have set my java min/max heap size to be the same as outlined in the Sun Docs for precise heap sizing using the following: