This section describes the MBean used for monitoring the Java Virtual Machine (JVM):
The JVM monitor MBean monitors the Java Virtual Machine.
The following subsection describes this MBean in detail.
Each broker has a single JVM monitor MBean, used for monitoring the Java Virtual Machine (JVM).
This MBean is useful only with the Java Development Kit (JDK) version 1.4 or lower. JDK version 1.5 includes built-in MBeans that provide more detailed information on the state of the JVM.
The JVM monitor MBean has the following object name:
com.sun.messaging.jms.server:type=JVM,subtype=Monitor
A string representing this object name is defined as a static constant JVM_MONITOR_MBEAN_NAME in the utility class MQObjectName.
The JVM monitor MBean has the attributes shown in Table 3–89. The names of these attributes are defined as static constants in the utility class JVMAttributes.
Table 3–89 JVM Monitor Attributes
Name |
Type |
Settable? |
Description |
---|---|---|---|
Long |
No |
Current total memory, in bytes |
|
Long |
No |
Initial heap size at JVM startup, in bytes |
|
Long |
No |
Amount of memory currently available for use, in bytes |
|
Long |
No |
Maximum allowable heap size, in bytes Any memory allocation attempt that would exceed this limit will cause an OutOfMemoryError exception to be thrown. |