I’m trying to enable remote JMX on a Jetty 6.1.26 instance running on Windows.
I have tried several approaches, but the result is always the same:
When I try to connect from jconsole to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi I got “connection refused”.
I have found several guides on the internet, but no one seems to help.
Please note that I’m running Jetty standalone, from the “Jetty-Service.exe” wrapper.
It would be great if someone could suggest a way to enable remote JMX on jetty.
I’m answering my own question.
This is the way I have found to start Jetty with JMX enabled: