How to profile java web application run on tomcat using jconsole

On this tutorial i willl guide you how to using jconsole to connect java application and profile. In this sample i use jconsole to monitor database pool c3p0.

  1. Run your web application
  2. Run jconsole
  3. Choose right java process you need connect in your local machine to connect remote you need enable JMX and open port

In my case i choose org.apache.catalina.startup.Bootstrap then connect

4. Choose tab MBean and choose c3p0

Now you can monitor all properties of C3p0 database pool when running application with this way you can monitor if connection close properly or not.

Leave a Reply