How to Run Jetty with jconsole
All you need do is start jconsole and then start jetty with a special system property:
Jetty Maven Plugin
If you are running the jetty maven plugin, then you need to start it like so:
You should see a dialog like so (Note that with the jetty maven plugin, there entry will say "org.codehaus.classworlds.Launcher "jetty:run"" instead):
Select the start.jar entry and click on the
Connect button.A new jconsole window will open:
From this window you will be able to monitor memory usage, thread usage, classloading and vm statistics. You'll also be able to perform operations such as doing a manual garbage collect. Jconsole is an extremely powerful and useful tool.
Using the Jetty MBeans with jconsole
The MBean tab of jconsole allows access to managed objects within the java application, including MBeans provided by the JVM.
If you also want to be able to interact with the Jetty JMX implementation via jconsole, then you need to start Jetty JMX in a form that jconsole can access. Do:
See JMX for more details.