Can jconsole be used with Java EE?

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?

Answers


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:

>startup.bat -Dcom.sun.management.jmxremote

You could then start JConsole as a standalone application

>jconsole

and then attach jconsole to the Java process that is running Tomcat. Similar steps apply to other application servers.


Need Your Help

Which is better apply two conditions in nested If or using single with And?

c# vb.net

Nested If or single if with And operator, which is better approach?

Directory structure of Octopress

directory blogs octopress

I want to understand the entire directory structure of Octopress. Each and every folder and how they fit in together. Could not find any docs online.

Can mcrypt perform the same algorithms supported by crypt()?

php hash mcrypt crypt sha512

I have an app that runs on PHP 5.3 which stores passwords hashed using PHP's crypt() function. However the hashing type (SHA 512) used is not available by default on one of the servers I'm now using