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

How to close a Terminal window while executing a file with node.js without stopping the process?

osx node.js terminal

When I execute a file with node.js (by typing "node example.js", maybe a http server), then, when I close the Terminal window (Mac OS X Lion), the process is stopped and doesn't answers on requests

What MUST go inside onDestroy()? (if anything at all)

android

Right so here I am obsessing over memory leaks, and quite frankly not understanding what could really lead to one (and yes I've read the usual links such as

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.