From a80658e70ddba15d796ec7eb1bb4e68fb0f5881f Mon Sep 17 00:00:00 2001 From: liwu Date: Fri, 24 Apr 2020 16:36:54 +0800 Subject: [PATCH] =?UTF-8?q?@dev=E6=B7=BB=E5=8A=A0jmx=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/run-app.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/run-app.sh b/common/run-app.sh index a3794e9..871a4f5 100755 --- a/common/run-app.sh +++ b/common/run-app.sh @@ -9,6 +9,8 @@ fi JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -verbose.gc -Xloggc:gc.log \ -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError \ -XX:+PrintGCApplicationConcurrentTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M \ + -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 " if [[ "$SPRING_PROFILE" =~ "online" || "$SPRING_PROFILE" =~ "pre" ]]; then -- GitLab