Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created July 30, 2018 07:02
Show Gist options
  • Save diegopacheco/3432ae63b514b878167a37976b004270 to your computer and use it in GitHub Desktop.
Save diegopacheco/3432ae63b514b878167a37976b004270 to your computer and use it in GitHub Desktop.
How to enable JMX on Jetty 9.4 Standalone

Just 1 time

java -jar {$jetty.home}/start.jar --add-to-start=jmx
vim start.ini
--exec
-Xshare:off
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=7094
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.net.preferIPv4Stack=true
-Djava.rmi.server.hostname=localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment