Commit 256587d0 authored by liaozan's avatar liaozan 🏀

Adding Parameters to Prevent jvm from Exception Stack Optimization

parent 1e62225a
...@@ -8,6 +8,7 @@ fi ...@@ -8,6 +8,7 @@ fi
JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc \ JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc \
-Xlog:gc*=info:file=/app/gc.log::filecount=50,filesize=100M -XX:+HeapDumpOnOutOfMemoryError \ -Xlog:gc*=info:file=/app/gc.log::filecount=50,filesize=100M -XX:+HeapDumpOnOutOfMemoryError \
-XX:+OmitStackTraceInFastThrow \
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.rmi.port=1099 \ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.rmi.port=1099 \
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false \
-DSW_AGENT_NAME=$SERVICE_NAME " -DSW_AGENT_NAME=$SERVICE_NAME "
......
...@@ -9,6 +9,7 @@ fi ...@@ -9,6 +9,7 @@ fi
JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc -Xloggc:gc.log \ JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc -Xloggc:gc.log \
-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError \ -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError \
-XX:+PrintGCApplicationConcurrentTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M \ -XX:+PrintGCApplicationConcurrentTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M \
-XX:+OmitStackTraceInFastThrow \
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.rmi.port=1099 \ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.rmi.port=1099 \
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false \
-DSW_AGENT_NAME=$SERVICE_NAME " -DSW_AGENT_NAME=$SERVICE_NAME "
......
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