Share code snippets.

jmxissue

Created 2 years ago by anonymous
Fixed : Port already in use error when trying to shutdown Apache Tomcat with JMX monitoring enabled
ERROR :
// Setting the port in JAVA_OPTS 
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8085"

Change it to 
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999"