@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class MemoryUsageMonitorEntry extends MonitorEntry
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
MonitorManager.getMemoryUsageMonitorEntry(com.unboundid.ldap.sdk.LDAPConnection)
method.
This entry provides specific methods for accessing information about JVM
memory usage (e.g., the getMemoryPoolNames()
method can be used to retrieve the names of the memory pool). Alternately,
this information may be accessed using the generic API. See the
MonitorManager
class documentation for an example that demonstrates
the use of the generic API for accessing monitor data.Constructor and Description |
---|
MemoryUsageMonitorEntry(Entry entry)
Creates a new memory usage monitor entry from the provided entry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAverageCollectionDuration(java.lang.String collectorName)
Retrieves the average garbage collection duration (in milliseconds) for the
specified collector.
|
java.util.Map<java.lang.String,java.lang.Long> |
getAverageCollectionDurations()
Retrieves a map containing the average garbage collection duration (in
milliseconds) per garbage collector.
|
java.util.Map<java.lang.String,java.lang.Long> |
getBytesUsedAfterLastCollection()
Retrieves a map containing the number of bytes used after the last garbage
collection per memory pool.
|
java.lang.Long |
getBytesUsedAfterLastCollection(java.lang.String poolName)
Retrieves the number of bytes used after the last garbage collection for
the specified memory pool.
|
java.util.Map<java.lang.String,java.lang.Long> |
getCurrentBytesUsed()
Retrieves a map containing the current number of bytes used per memory
pool.
|
java.lang.Long |
getCurrentBytesUsed(java.lang.String poolName)
Retrieves the current number of bytes used for the specified memory pool.
|
java.lang.Long |
getCurrentReservedMemoryMB()
Retrieves the amount of memory (in megabytes) that is currently allocated
for use by the JVM.
|
java.util.Map<java.lang.Long,java.lang.Long> |
getDetectedPauseCounts()
Retrieves the number of pauses of various durations detected by the server.
|
java.lang.Long |
getFreeReservedMemoryMB()
Retrieves the amount of memory (in megabytes) allocated for use by the JVM
that is not currently in use for holding Java objects.
|
java.util.List<java.lang.String> |
getGarbageCollectorNames()
Retrieves the names of the garbage collectors for which information is
available.
|
java.lang.Long |
getMaxDetectedPauseTimeMillis()
Retrieves the duration of the longest pause detected by the server.
|
java.lang.Long |
getMaxReservableMemoryMB()
Retrieves the maximum amount of memory (in megabytes) that may be allocated
and used by the JVM.
|
java.util.List<java.lang.String> |
getMemoryPoolNames()
Retrieves the names of the memory pools for which information is available.
|
java.util.Map<java.lang.String,MonitorAttribute> |
getMonitorAttributes()
Retrieves the set of parsed monitor attributes for this monitor entry,
mapped from a unique identifier (in all lowercase characters) to the
corresponding monitor attribute.
|
java.lang.String |
getMonitorDescription()
Retrieves a human-readable description name for this monitor entry.
|
java.lang.String |
getMonitorDisplayName()
Retrieves a human-readable display name for this monitor entry.
|
java.lang.Long |
getNonHeapMemoryBytesUsed()
Retrieves the amount of non-heap memory consumed by the JVM.
|
java.lang.Long |
getPercentageOfCommittedTenuredMemoryUsedByMemoryConsumers()
Retrieves the percentage of the committed amount of tenured memory that is
used by memory consumers (assuming that all memory used by memory consumers
is contained in the tenured generation).
|
java.lang.Long |
getPercentageOfMaximumTenuredMemoryUsedByMemoryConsumers()
Retrieves the percentage of the maximum allowed amount of tenured memory
that is used by memory consumers (assuming that all memory used by memory
consumers is contained in the tenured generation).
|
java.lang.Long |
getRecentCollectionDuration(java.lang.String collectorName)
Retrieves the duration (in milliseconds) of the most recent garbage
collection for the specified collector.
|
java.util.Map<java.lang.String,java.lang.Long> |
getRecentCollectionDurations()
Retrieves a map containing the most recent garbage collection duration (in
milliseconds) per garbage collector.
|
java.lang.Long |
getReservedMemoryPercentFull()
Retrieves the percent of the currently-reserved memory that is actually in
use by the JVM for storing Java objects.
|
java.lang.Long |
getTotalBytesUsedByMemoryConsumers()
Retrieves the total amount of memory in bytes held by memory consumers.
|
java.lang.Long |
getTotalCollectionCount(java.lang.String collectorName)
Retrieves the total number of garbage collections performed by the
specified collector.
|
java.util.Map<java.lang.String,java.lang.Long> |
getTotalCollectionCounts()
Retrieves a map containing the total number of garbage collections
performed per collector.
|
java.lang.Long |
getTotalCollectionDuration(java.lang.String collectorName)
Retrieves the total length of time (in milliseconds) spent performing
garbage collection for the specified collector.
|
java.util.Map<java.lang.String,java.lang.Long> |
getTotalCollectionDurations()
Retrieves a map containing the total length of time (in milliseconds) spent
performing garbage collection per collector.
|
java.lang.Long |
getUsedReservedMemoryMB()
Retrieves the amount of memory (in megabytes) allocated for use by the JVM
that is currently in use for holding Java objects.
|
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
public MemoryUsageMonitorEntry(@NotNull Entry entry)
entry
- The entry to be parsed as a memory usage monitor entry. It
must not be null
.@Nullable public java.lang.Long getMaxReservableMemoryMB()
null
if this was not included in
the monitor entry.@Nullable public java.lang.Long getCurrentReservedMemoryMB()
null
if this was not included in
the monitor entry.@Nullable public java.lang.Long getUsedReservedMemoryMB()
null
if this was not included in the monitor entry.@Nullable public java.lang.Long getFreeReservedMemoryMB()
null
if this was not included in the monitor entry.@Nullable public java.lang.Long getReservedMemoryPercentFull()
@NotNull public java.util.List<java.lang.String> getGarbageCollectorNames()
@NotNull public java.util.List<java.lang.String> getMemoryPoolNames()
@NotNull public java.util.Map<java.lang.String,java.lang.Long> getTotalCollectionCounts()
@Nullable public java.lang.Long getTotalCollectionCount(@NotNull java.lang.String collectorName)
collectorName
- The name of the garbage collector for which to
retrieve the information.null
if that information is not available.@NotNull public java.util.Map<java.lang.String,java.lang.Long> getTotalCollectionDurations()
@Nullable public java.lang.Long getTotalCollectionDuration(@NotNull java.lang.String collectorName)
collectorName
- The name of the garbage collector for which to
retrieve the information.null
if
that information is not available.@NotNull public java.util.Map<java.lang.String,java.lang.Long> getAverageCollectionDurations()
@Nullable public java.lang.Long getAverageCollectionDuration(@NotNull java.lang.String collectorName)
collectorName
- The name of the garbage collector for which to
retrieve the information.null
if that information is not
available.@NotNull public java.util.Map<java.lang.String,java.lang.Long> getRecentCollectionDurations()
@Nullable public java.lang.Long getRecentCollectionDuration(@NotNull java.lang.String collectorName)
collectorName
- The name of the garbage collector for which to
retrieve the information.null
if that
information is not available.@NotNull public java.util.Map<java.lang.String,java.lang.Long> getCurrentBytesUsed()
@Nullable public java.lang.Long getCurrentBytesUsed(@NotNull java.lang.String poolName)
poolName
- The name of the memory pool for which to retrieve the
information.null
if that information is not available.@NotNull public java.util.Map<java.lang.String,java.lang.Long> getBytesUsedAfterLastCollection()
@Nullable public java.lang.Long getBytesUsedAfterLastCollection(@NotNull java.lang.String poolName)
poolName
- The name of the memory pool for which to retrieve the
information.null
if that information is not
available.@Nullable public java.lang.Long getNonHeapMemoryBytesUsed()
null
if that information is not available.@Nullable public java.lang.Long getTotalBytesUsedByMemoryConsumers()
null
if that information is not available.@Nullable public java.lang.Long getPercentageOfMaximumTenuredMemoryUsedByMemoryConsumers()
null
if that
information is not available.@Nullable public java.lang.Long getPercentageOfCommittedTenuredMemoryUsedByMemoryConsumers()
null
if that information is
not available.@NotNull public java.util.Map<java.lang.Long,java.lang.Long> getDetectedPauseCounts()
@Nullable public java.lang.Long getMaxDetectedPauseTimeMillis()
null
if that information is not available.@NotNull public java.lang.String getMonitorDisplayName()
getMonitorDisplayName
in class MonitorEntry
@NotNull public java.lang.String getMonitorDescription()
getMonitorDescription
in class MonitorEntry
@NotNull public java.util.Map<java.lang.String,MonitorAttribute> getMonitorAttributes()
getMonitorAttributes
in class MonitorEntry