Commit e654cf6b authored by liaozan's avatar liaozan 🏀

Enable jmx & Enable native memory tracking

parent c8ed9be7
......@@ -15,9 +15,10 @@ RUN mkdir -p /data/logs/gc
ENV EXT_JVM_OPTS="${JAVA_OPTS}"
ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.service_name=${APP_NAME},collector.backend_service=skywalking-oap-server.devops:11800\
-XX:+AlwaysPreTouch -XX:MinRAMPercentage=75 -XX:MaxRAMPercentage=75 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\
-XX:+AlwaysPreTouch -XX:MinRAMPercentage=75 -XX:MaxRAMPercentage=75 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -XX:NativeMemoryTracking=summary\
-XX:+UseG1GC -XX:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError='/app/dump-file-rollover.sh'\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
ENTRYPOINT exec java $JVM_OPTS $EXT_JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment