I want to monitor performance of web application, running in java JVM(Java version 1.5.0_22) using tomcat web server , for a given functionality want to find, methods and sql queries how much time taking for execution. i am looking for setting and free tools available.
JAMon can monitor servlet/jsp performance as well as sql performance and it is open source. In fact I just created 3 short videos that explain it and put them on youtube. They are a few minutes long each. Even if you have used JAMon before I suggest watching them as it can do more than most people know.
Tomcat 6
* Put jamon-2.7.jar (or higher) in the tomcat 'lib' directory.
* Put jamon.war (or higher) in the tomcat 'webapps' directory.
* Add the following Valve line to Tomcat's server.xml file. The 'Engine' line is used to show context.