How to Increase Heap Size in Play Framework 2.1?
To configure the Java Heap in UNIX environment, run these before starting dsp:
export JAVA_MIN_MEM=2048M
export JAVA_MAX_MEM=4128M
export JAVA_PERM_MEM=256M
start your script file.
When starting your application with staged start script, you can append jvm args directly. For example:
./target/start -Xms1g -Xmx2g -Xloggc:gc.log -verbose:gc -XX:+PrintGCDateStamps -server -Dhttp.port=24000 &
This will print gc logs to gc.log as well. So that you can verify whether heap size is really allocated.