Commit bf042f85 authored by liwu's avatar liwu

@dev 更新jvm参数

parent 3c088b1b
......@@ -6,9 +6,8 @@ if [[ "$SPRING_PROFILE" =~ "online" || "$SPRING_PROFILE" =~ "pre" ]]; then
MEM_OPTS="-Xms3584m -Xmx3584m"
fi
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:+PrintGCApplicationConcurrentTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M \
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 \
-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 \
-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