Last active
September 16, 2018 17:51
-
-
Save rponte/1173847 to your computer and use it in GitHub Desktop.
Arguments to enable JMX on JVM - Example of setenv.sh file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=8086 | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.authenticate=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=8086 | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Djava.rmi.server.hostname=localhost # use a public IP if you're not using NAT (port forwarding) | |
-Dcom.sun.management.jmxremote.rmi.port=8086 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=8086 | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.password.file=./myapp/jmxremote.password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pay attention to: | |
### CATALINA_OPTS = (Optional) Java runtime options used when the "start", or "run" command is executed. | |
### JAVA_OPTS = (Optional) Java runtime options used when the "start", "stop", or "run" command is executed. | |
export CATALINA_OPTS="-Djava.awt.headless=true -server \ | |
-Xms128m -Xmx256m -XX:MaxPermSize=96m \ | |
-Dcom.sun.management.jmxremote \ | |
-Dcom.sun.management.jmxremote.port=8086 \ | |
-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
More info,
http://pineapplesoftware.blogspot.com.br/2012/11/this-post-is-basically-commercial-for.html
"[...] The port for the RMI server, which is returned in the stub retrieved from the registry, is however anonymous by default. This makes tunneling traffic pretty cumbersome. [...]" -- http://hirt.se/blog/?p=289