- 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/