Enabling JMX Support for JRE
To enable JMX support for Confluence's JRE, do the following:
- Open the catalina.bat file in the <<ATLASSIAN_HOME>>\confluence\bin directory (on Windows; on Unix, this will be <<ATLASSIAN_HOME>>/confluence/bin directory).
- Look for the entry that begins with set "JAVA_OPTS=
-
Under that entry, specify the following:
set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=<<JMX_REMOTE_PORT>> -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false "
- Make sure that you replace the text in Bold in the entry above with a valid JMX remote port.
- Then, save the file.
-
Finally, restart the Confluence server. For this, first go to the command prompt and switch to the <<ATLASSIAN_CONFLUENCE_HOME>>\confluence\bin directory. Then, run the following command at the prompt:
Start-confluence.bat /fg