Configuring JVM Monitoring for Windows/Linux in Apache Storm
To collect JVM-related metrics, the eG agent connects to the Apache Storm via JMX. By default, JMX support is not enabled on Apache Storm. However, to enable the eG agent to use JMX, the JVM tests that the eG agent runs should be configured with a JMX Remote Port - this is the port at which the JMX listens for requests from remote hosts. You need to determine the correct JMX remote port to configure.
Enabling JMX on Apache Storm
JMX can be configured based on the availability of the port. For our assumption, the JMX is configured in the available port. To enable JVM metrics for Apache Storm component for nimbus node, open the storm.yaml file in (for example: storm directory location/conf) path. Now search for "nimbus.childopts" in the file and then append the following commands (shown in bold) to it as shown below:
nimbus.childopts: "-Xmx1024m -Dcom.sun.management.jxmremote -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9997 -Djava.rmi.server.hostname=172.16.14.70"
or you can paste it as a new line as shown below:
nimbus.childopts: "-Xmx1024m -Dcom.sun.management.jxmremote -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9997 -Djava.rmi.server.hostname=172.16.14.70"