DESCRIPTION:
I wanted to share this because there were a couple of steps that were not intuitive and took me a while to figure out. The first was downloading JRE from Oracle. I had to use Java SE 8 (not 11). Also, the instructions for enabling JMX mostly talked about bat files etc but I (and most other people) run Tomcat as a Windows service. You need to use the Tomcat9w.exe to add in the settings that enable JMX. You also need to remove the backslashes and type in the port number you want to use.
DEMO VIDEO:
INSTRUCTIONS:
- Download JRE (link) and install. I suggest setting the environment variables
- Download Tomcat (link) and install.
- Copy the lines from the LogicMonitor help doc (link) to enable JMX. My example below
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=c2016
- Start Tomcat9w.exe and paste in the lines from previous step. Remember to remove the backslashes and type in your settings
- Restart the Tomcat services so it uses these new settings
- Set a property on the server in LogicMonitor as follows: tomcat.jmxports = 5000.
- Wait for the next Active Discovery or ‘Run Active Discovery’ by clicking the blue arrow pull down menu
No comments