Package | Description |
---|---|
java.lang.management |
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
|
Modifier and Type | Method and Description |
---|---|
static MemoryUsage |
MemoryUsage.from(CompositeData cd)
Receives a
CompositeData representing a MemoryUsage
object and attempts to return the root MemoryUsage
instance. |
MemoryUsage |
MemoryPoolMXBean.getCollectionUsage()
If supported by the virtual machine, returns a
MemoryUsage which
encapsulates this memory pool's memory usage after the most recent run of
the garbage collector. |
MemoryUsage |
MemoryMXBean.getHeapMemoryUsage()
Returns the current memory usage of the heap for both live objects and
for objects no longer in use which are awaiting garbage collection.
|
MemoryUsage |
MemoryMXBean.getNonHeapMemoryUsage()
Returns the current non-heap memory usage for the virtual machine.
|
MemoryUsage |
MemoryPoolMXBean.getPeakUsage()
Returns information on the peak usage of the memory pool.
|
MemoryUsage |
MemoryNotificationInfo.getUsage()
Returns an instance of
MemoryUsage that encapsulates the memory
usage of the memory pool that gave rise to this notification at the time
the notification was created. |
MemoryUsage |
MemoryPoolMXBean.getUsage()
Returns the current memory usage of this memory pool as estimated by the
virtual machine.
|
Constructor and Description |
---|
MemoryNotificationInfo(String poolName,
MemoryUsage usage,
long count)
Creates a new
MemoryNotificationInfo instance. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.