public static class VirtualMachineMetrics.BufferPoolStats extends Object
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Returns an estimate of the number of buffers in the pool.
|
long |
getMemoryUsed()
Returns an estimate of the memory that the Java virtual machine is using for this buffer
pool.
|
long |
getTotalCapacity()
Returns an estimate of the total capacity of the buffers in this pool.
|
public long getCount()
public long getMemoryUsed()
capacity
of the buffers in this pool. This difference is explained by
alignment, memory allocator, and other implementation specific reasons.-1L
if an estimate of the memory usage is not
availablepublic long getTotalCapacity()