Skip to content

Instantly share code, notes, and snippets.

@jannegpriv
Last active November 21, 2020 21:07
Show Gist options
  • Save jannegpriv/af91e2b697a639478f274b268d8ba210 to your computer and use it in GitHub Desktop.
Save jannegpriv/af91e2b697a639478f274b268d8ba210 to your computer and use it in GitHub Desktop.
Configure JMX agent on openHAB to be able to run misison control

Configure JMX agent on openHAB to be able to run misison control

  1. Add the following lines to /etc/default/openhab2: (NOTE: Xmx/Xms is also set to 1024m in this example)
#########################
## JAVA OPTIONS
## Additional options for the JAVA_OPTS environment variable.
## These will be appended to the execution of the openHAB Java runtime in front of all other options.
## 
## A couple of independent examples:
EXTRA_JAVA_OPTS="-Xms1024m -Xmx1024m -XX:+FlightRecorder -Djava.rmi.server.hostname=192.168.50.141 -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false"

Download and install Zulu Mission Control: https://www.azul.com/products/zulu-mission-control/

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