Help
Popular Articles
Staff
Metacat and KNB Web Maintenance โ Set Up JMX and JConsole
Java Management Extensions (JMX) allow for monitoring and managing applications. The jvm (and applications) can make information available via management beans (MBeans). A great deal of information is automatically available from the JVM, such as thread information, memory usage, etc. The information can be gathered at the command line and made available to a monitoring system using a program called jvmstat. A gui program can be used to view the information real time as well. Here we will discuss using JConsole, which ships with sun java. โ Setting up JMX on the server โ You will need to add some java arguments to the startup command for Tomcat. If you have a catalina.sh in your <tomcat_home>/bin directory, you can add the args to CATALINA_OPTS. If not, there are different startup files for different tomcat installations, so you will need to decide where the additional arguments should live. The most important consideration is that the arguments show only during start/run commands somewhere before the org.apache.catalina.startup.Bootstrap element.
For more information on JMX configuration, refer to http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html <br> For more informtaion on JConsole client, refer to http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html