diff --git a/common/run-app.sh b/common/run-app.sh index a3794e91100a1d8858b963355cf9f4894d3eb76b..871a4f59b20b6c38f42b4418ec01e13ece1677d7 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