Skip to content

Instantly share code, notes, and snippets.

@mrkeuz
Created March 4, 2016 04:03
Show Gist options
  • Save mrkeuz/eb454e512d002a160f17 to your computer and use it in GitHub Desktop.
Save mrkeuz/eb454e512d002a160f17 to your computer and use it in GitHub Desktop.
Docker hosted Jetty remote JMX recipe
# Docker hosted Jetty remote JMX recipe
#
# Tested on: jetty:9.3-jre8
# work with args: --module=jmx,jmx-remote
#
# IMPORTANT: Hostname parameter (java.rmi.server.hostname) important for search RMI server
# during connection (AFIAK) and must point to exposed, external <host:port>
# (see https://olegz.wordpress.com/2009/03/23/jmx-connectivity-through-the-firewall/)
#
-Djava.rmi.server.hostname={external IP/hostname}
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment