Skip to content

Instantly share code, notes, and snippets.

@gilbertolptn
Last active Jun 10, 2020
Embed
What would you like to do?
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