Skip to content

Instantly share code, notes, and snippets.

@thiagomgo
Forked from rponte/jmxremote_arguments.sh
Last active September 26, 2017 15:55
Show Gist options
  • Save thiagomgo/c2ef7ca427cac2de0c93ec0adb244775 to your computer and use it in GitHub Desktop.
Save thiagomgo/c2ef7ca427cac2de0c93ec0adb244775 to your computer and use it in GitHub Desktop.
Arguments to enable JMX on JVM - Example of setenv.sh file
-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
-Dcom.sun.management.jmxremote.port=8086
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.rmi.port=8086
-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
# 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