Showing
1 changed file
with
5 additions
and
0 deletions
@@ -83,3 +83,8 @@ fi | @@ -83,3 +83,8 @@ fi | ||
83 | 83 | ||
84 | 84 | ||
85 | JAVA_OPTS=" $JAVA_OPTS $SERVER_BASE_DIR " | 85 | JAVA_OPTS=" $JAVA_OPTS $SERVER_BASE_DIR " |
86 | + | ||
87 | +#jmx | ||
88 | +export JMX_PORT=`expr 9600 + $SERVER_PORT` | ||
89 | +export LOCAL_IP=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|awk 'NR==1 {print}'` | ||
90 | +export CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=$LOCAL_IP -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" |
-
Please register or login to post a comment