Skip to content

Instantly share code, notes, and snippets.

@mihaiparv
Created September 21, 2016 08:04
Show Gist options
  • Select an option

  • Save mihaiparv/3078382efb5d79240c625da10ac837de to your computer and use it in GitHub Desktop.

Select an option

Save mihaiparv/3078382efb5d79240c625da10ac837de to your computer and use it in GitHub Desktop.
JMX config for tomcat in docker
version: "2"
services:
web:
image: tomcat:8.5-alpine
ports:
- 8080:8080
- 9999:9999
environment:
- CATALINA_OPTS=-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999 -Djava.rmi.server.hostname=0.0.0.0
@lukasmrtvy
Copy link

Thanks.
Auth:
-Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=/usr/local/tomcat/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/usr/local/tomcat/conf/jmxremote.access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment