Skip to content

Instantly share code, notes, and snippets.

@gilbertolptn
Last active June 10, 2020 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilbertolptn/45c316db9af1ee392c5a79da2714527d to your computer and use it in GitHub Desktop.
Save gilbertolptn/45c316db9af1ee392c5a79da2714527d to your computer and use it in GitHub Desktop.
docker run --rm -it -p 8080:8080 -p 9010:9010 -e JAVA_TOOL_OPTIONS='
-Xmx450M
-XX:+UseConcMarkSweepGC
-XX:NativeMemoryTracking=summary
-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.rmi.port=9010
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dspring.profiles.active=local
-XX:MaxRAMPercentage=50 -XX:InitialRAMPercentage=35
' \
-m=450M --memory-swap=450M --name app \
{{IMAGE:TAG}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment