Introduction of Tomcat opening JMX service method

  • 2020-06-23 02:24:49
  • OfStack

Tomcat Starting JMX is as simple as adding to catalina.sh:

1.CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true

2."

The port number 8999 can be modified to an unused port.

Modify JAVA_HOME jre/lib/management jmxremote. Below access and jmxremote password file permissions and content

sudo chmod 600 jmxremote.access

1.monitorRole readonly

2.controlRole readwrite \

3.create javax.management.monitor.*,javax.management.timer.* \

4. unregister

sudo chmod 600 jmxremote.password

1.monitorRole QED

2.controlRole R & D

Modify hosts file:

Change 127.0.0.1 to real IP

Restart Tomcat.

conclusion

The above is the introduction of Tomcat opening JMX service method. I hope it will be helpful to you. Interested friends can refer to the site other related topics, what questions can leave a message, this site will promptly reply to everyone.


Related articles: