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. |