The JMX Plugin can be configured to connect to the monitored JVM application, look up specific Mbeans and retrieve values of their attributes (such as heap size).
Below is a sample JMX template that captures the heap memory usage.
In the JMX sampler, the serviceUrlRmi variable should point to the serviceURL which contains the hostname/IP, port and JMX details. The format would look like service:jmx:rmi:///jndi/rmi://<jmxhost>:<jmxport>/jmxrmi.
Below is the dataview of the XML configuration above:
Please see the JMX-server plugin technical reference for more details.
Please sign in to leave a comment.