All the examples I see are for Java SE applications by passing your JAR file at the command line. Can JConsole attach to a WAR or EAR and monitor application performance?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JConsole is for monitoring JVMs. I’m assuming that you would like to monitor the performance of your application server. To do so, you’ll have to set the com.sun.management.jmxremote property, when initializing your application server.
For example, in Tomcat (I know this is not a complete Java EE container), you would start the container as:
You could then start JConsole as a standalone application
and then attach jconsole to the Java process that is running Tomcat. Similar steps apply to other application servers.