JDK comes with VisualVM to monitor tomcat memory and CPU
1. Install JDK on your computer first. After the JDK is installed, find the jvisualvm.exe application under the installation directory binand run it. 2. Right-click "remote" and "add remote host. add the following parameter before the last line of sh: # this jmx export CATALINA_OPTS = "$ CATALINA_OPTS-Dcom. sun. management. jmxremote-Dcom. sun. management. jmxremote. port = 8849-Dcom. sun. management. jmxremote. ssl = false-Dcom. sun. management. jmxremote. authenticate = false-Djava. rmi. server. hostname = 10.1.1.42 "the IP address is the IP address of the tomcat application, and the port number can be set freely. do not conflict with the existing port. 3. Select the added host, right-click and select Add JMX connection. In connection, enter the tomcat IP address and port 10.1.1.42: 8849.