After weeks of tweeking i finally found an environment that works smoothly
2GB VM
I kept my ${MXRAM} at 1800M
$JAVA -classpath $CP \
-server \
-Xmx${MXRAM} \
-Xms${MXRAM} \
-Djava.awt.headless=true \
-XX:MaxGCPauseMillis=500 \
-XX:+UseParallelGC \
-Dappjet.jmxremote=true \
$JAVA_OPTS \
net.appjet.oui.main \
–configFile=${cfg_file} \
“$@”
Note the lack of logging etc.