...
How to Run Jetty with jconsole
All you need do is To run Jetty, start jconsole and then start jetty Jetty with a special system property:
...
If you are running the jetty maven plugin, then you need to tell maven Maven to set the system property com.sun.management.jmxremote before running the plugin. The way to do this is to set the environment variable MAVEN_OPTS. EgFor example, on unix UNIX systems, do:
| Code Block |
|---|
export MAVEN_OPTS=-Dcom.sun.management.jmxremote mvn jetty:run |
You should see a dialog like so (Note that with the jetty maven plugin, there the entry will say "org.codehaus.classworlds.Launcher "jetty:run"" instead):
...