| Modifier and Type | Field and Description |
|---|---|
| private final VMManagement | |
| private static MemoryManagerMXBean[] | |
| private static final String[] | |
| private static final String | |
| private static final String[] | |
| private static MemoryPoolMXBean[] | |
| private static long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| public void | |
| public MemoryUsage | getHeapMemoryUsage()
Implements java. Returns the current memory usage of the heap that is used for object allocation. |
| pack-priv static synchronized MemoryManagerMXBean[] | |
| private static native MemoryManagerMXBean[] | |
| pack-priv static synchronized MemoryPoolMXBean[] | |
| private static native MemoryPoolMXBean[] | |
| private native MemoryUsage | |
| private static long | |
| public MemoryUsage | getNonHeapMemoryUsage()
Implements java. Returns the current memory usage of non-heap memory that is used by the Java virtual machine. |
| public MBeanNotificationInfo[] | getNotificationInfo()
Implements abstract sun. Implements javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. |
| private static String | |
| public ObjectName | getObjectName()
Implements java. Returns an |
| public int | getObjectPendingFinalizationCount()
Implements java. Returns the approximate number of objects for which finalization is pending. |
| public long | getTotalGcCpuTime()
Overrides default java. Returns the approximate accumulated time, in nanoseconds, spent in garbage collection (GC). |
| public boolean | isVerbose()
Implements java. Tests if verbose output for the memory system is enabled. |
| public void | setVerbose(boolean value)
Implements java. Enables or disables verbose output for the memory system. |
| private native void |
| jvm | back to summary |
|---|---|
| private final VMManagement jvm | |
| mgrs | back to summary |
|---|---|
| private static MemoryManagerMXBean[] mgrs | |
| notifMsgs | back to summary |
|---|---|
| private static final String[] notifMsgs | |
| notifName | back to summary |
|---|---|
| private static final String notifName | |
| notifTypes | back to summary |
|---|---|
| private static final String[] notifTypes | |
| pools | back to summary |
|---|---|
| private static MemoryPoolMXBean[] pools | |
| seqNumber | back to summary |
|---|---|
| private static long seqNumber | |
| MemoryImpl | back to summary |
|---|---|
| pack-priv MemoryImpl(VMManagement vm) Constructor of MemoryImpl class | |
| createNotification | back to summary |
|---|---|
| pack-priv static void createNotification(String notifType, String poolName, MemoryUsage usage, long count) | |
| gc | back to summary |
|---|---|
| public void gc() Implements java. Doc from java. Runs the garbage collector.
The call System.gc() | |
| getHeapMemoryUsage | back to summary |
|---|---|
| public MemoryUsage getHeapMemoryUsage() Implements java. Doc from java. Returns the current memory usage of the heap that
is used for object allocation. The heap consists
of one or more memory pools. The The amount of used memory in the returned memory usage is the amount of memory occupied by both live objects and garbage objects that have not been collected, if any.
MBeanServer access: | |
| getMemoryManagers | back to summary |
|---|---|
| pack-priv static synchronized MemoryManagerMXBean[] getMemoryManagers() | |
| getMemoryManagers0 | back to summary |
|---|---|
| private static native MemoryManagerMXBean[] getMemoryManagers0() | |
| getMemoryPools | back to summary |
|---|---|
| pack-priv static synchronized MemoryPoolMXBean[] getMemoryPools() | |
| getMemoryPools0 | back to summary |
|---|---|
| private static native MemoryPoolMXBean[] getMemoryPools0() | |
| getMemoryUsage0 | back to summary |
|---|---|
| private native MemoryUsage getMemoryUsage0(boolean heap) | |
| getNextSeqNumber | back to summary |
|---|---|
| private static long getNextSeqNumber() | |
| getNonHeapMemoryUsage | back to summary |
|---|---|
| public MemoryUsage getNonHeapMemoryUsage() Implements java. Doc from java. Returns the current memory usage of non-heap memory that
is used by the Java virtual machine.
The non-heap memory consists of one or more memory pools.
The
MBeanServer access: | |
| getNotificationInfo | back to summary |
|---|---|
| public MBeanNotificationInfo[] getNotificationInfo() Implements abstract sun. Implements javax. Doc from javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning. | |
| getNotifMsg | back to summary |
|---|---|
| private static String getNotifMsg(String notifType) | |
| getObjectName | back to summary |
|---|---|
| public ObjectName getObjectName() Implements java. Doc from java. Returns an | |
| getObjectPendingFinalizationCount | back to summary |
|---|---|
| public int getObjectPendingFinalizationCount() Implements java. Doc from java. Returns the approximate number of objects for which finalization is pending.
| |
| getTotalGcCpuTime | back to summary |
|---|---|
| public long getTotalGcCpuTime() Overrides default java. Doc from java. Returns the approximate accumulated time, in nanoseconds, spent in garbage collection (GC). The time spent in spent in GC is the CPU time used by
all GC activity, including any overhead, which means the
result may be non-zero even if no GC has occurred.
This method returns | |
| isVerbose | back to summary |
|---|---|
| public boolean isVerbose() Implements java. Doc from java. Tests if verbose output for the memory system is enabled. | |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(boolean value) Implements java. Doc from java. Enables or disables verbose output for the memory system. The verbose output information and the output stream to which the verbose information is emitted are implementation dependent. Typically, a Java virtual machine implementation prints a message whenever it frees memory at garbage collection. Each invocation of this method enables or disables verbose output globally. | |
| setVerboseGC | back to summary |
|---|---|
| private native void setVerboseGC(boolean value) | |