Oracle GlassFish Message Queue 4.4.2 Developer's Guide for Java Clients

JVM Metrics

The messages you receive when you subscribe to the topic mq.metrics.jvm have the type property set to mq.metrics.jvm in the message header and have the data listed in Table 4–3 in the message body.

Table 4–3 Data in the Body of a JVM Metrics Message

Metric Name 

Value Type 

Description 


freeMemory

long 

Amount of free memory available for use in the JVM heap 


maxMemory

long 

Maximum size to which the JVM heap can grow 


totalMemory

long 

Total memory in the JVM heap