The Java™ Management Extensions must be configured on the server that is running Apache Tomcat. After installing Apache Tomcat on Microsoft Windows, run the Configure Tomcat shortcut. Click the Java tab, and then edit the Java Options. Following are sample Java options:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8880 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
export CATALINA_OPTS="-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=8686
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=your.server.domain.com"
Then, restart Apache Tomcat.