Use JConsole to monitor Tomcat
Use of JConsole:
JConsole is a JMX-based GUI tool used to connect to a running JVM. Monitors local and remote java programs.
JConsole can monitor Tomcat on local Tomcat and remote servers
Configure the following before monitoring:
1. If you want to monitor remote Java processes, you need to make corresponding settings on the remote server.
1) In windows, you need to modify the tomcat main directory \ bin \ catalina. bat file
Set
Set JAVA_OPTS = % JAVA_OPTS %-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. util. logging. config. file = "% CATALINA_BASE % \ conf \ logging. properties"
Modify
Set JAVA_OPTS = % JAVA_OPTS %-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. util. logging. config. file = "% CATALINA_BASE % \ conf \ logging. properties"
-Dcom. sun. management. jmxremote
-Dcom. sun. management. jmxremote. port = "8080"
-Dcom. sun. management. jmxremote. authenticate = "false"
-Dcom. sun. management. jmxremote. ssl = "false"
2) in Linux, You need to modify the tomcat main directory \ bin \ catalina. sh File
Add a row
CATALINA_OPTS = "$ JAVA_OPTS-Djava. rmi. server. hostname = 218.28.198.188-Dcom. sun. management. jmxremote. port = 9527-Dcom. sun. management. jmxremote. authenticate = false-Dcom. sun. management. jmxremote. ssl = false"
Then you can use JConsole to monitor Tomcat.
Click jconsole.exe under % JAVA_HOME % \ bin.
This article permanently updates the link address: