Skip to content

Instantly share code, notes, and snippets.

@eishay
Last active December 27, 2015 14:59
Show Gist options
  • Save eishay/7344161 to your computer and use it in GitHub Desktop.
Save eishay/7344161 to your computer and use it in GitHub Desktop.
Options for Play's build script play/framework/build for faster compilation
java ${DEBUG_PARAM} ${JAVA_OPTS} -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -server \
-XX:ReservedCodeCacheSize=2g -Xmx4g -Xss4M -XX:MaxPermSize=512M -XX:+DoEscapeAnalysis \
-XX:+UseCompressedOops -XX:+CMSClassUnloadingEnabled -XX:+UseCodeCacheFlushing \
-Dplay.version="${PLAY_VERSION}" -Dplay.version="${PLAY_VERSION}" -Dsbt.ivy.home=`dirname $0`/../repository \
-Dplay.home=`dirname $0` -Dsbt.boot.properties=`dirname $0`/sbt/sbt.boot.properties \
-jar `dirname $0`/sbt/sbt-launch.jar "$@"
@eishay
Copy link
Author

eishay commented Nov 6, 2013

Params for helping faster compilation of play project, note the UseCodeCacheFlushing, CMSClassUnloadingEnabled & ReservedCodeCacheSize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment