This discussion is archived
2 Replies Latest reply: Aug 31, 2012 12:23 AM by 765321 RSS

Profiling Tomcat based Web application using JConsole

800839 Newbie
Currently Being Moderated
Hi,

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:-

C:\jdk1.6\bin>jconsole localhost:9001

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.

Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points