I have a web application which is deployed in tomcat 6 , i want to know how i can profile the web application by launching the WAR file of tomcat using JConsole?
Is it possible we can profile the web application deployed in tomcat using the below:-
In the catalina.bat:-
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port="9001" -Dcom.sun.management.jmxremote.authenticate="false" -Dcom.sun.management.jmxremote.ssl="false"
Now you can open jconsole using below command:-
Whether the above will profile the web application deployed in tomcat? I tried the above but in vain?
Similarly, is it possible to launch an enterprise application .EAR using JConsole and profile the enterprise application?
Please shed some light into this.
You can try Java Monitor eclipse plugin. This gives detailed performance analysis on JVM level.
More information at http://www.jvmmonitor.org/
You can monitor multiple modules of your application with jvm monitor.