public interface VirtualMachineStatistics
Modifier and Type | Method and Description |
---|---|
long |
getAdminTimestamp()
Returns a timestamp that is in sync with where the admin API is running.
|
double |
getCpuPerc()
Returns the cpu percentage this virtual machine is using.
|
double |
getCpuPercAverage(long requestedTotalTime,
TimeUnit timeUnit)
Calculates the average number of cpu cores used by the java virtual machine over the
specified period of time.
|
String |
getCpuPercFormatted() |
VirtualMachineDetails |
getDetails()
Returns the details of the virtual machine.
|
long |
getGcCollectionCount()
Returns the total number of times GC was invoked for this virtual machine
|
double |
getGcCollectionPerc()
The percentage of the gc collection time between the current sampled statistics and the
previous one.
|
long |
getGcCollectionTime()
Returns the total time in milliseconds that this virtual machine spent doing GC
|
long |
getMemoryHeapCommittedInBytes() |
double |
getMemoryHeapCommittedInGB() |
double |
getMemoryHeapCommittedInMB() |
double |
getMemoryHeapCommittedUsedPerc()
Returns the memory heap percentage from used to committed.
|
long |
getMemoryHeapUsedInBytes() |
double |
getMemoryHeapUsedInGB() |
double |
getMemoryHeapUsedInMB() |
double |
getMemoryHeapUsedPerc()
Returns the memory heap percentage from used to the max.
|
long |
getMemoryNonHeapCommittedInBytes() |
double |
getMemoryNonHeapCommittedInGB() |
double |
getMemoryNonHeapCommittedInMB() |
double |
getMemoryNonHeapCommittedUsedPerc()
Returns the memory non heap percentage from used to committed.
|
long |
getMemoryNonHeapUsedInBytes() |
double |
getMemoryNonHeapUsedInGB() |
double |
getMemoryNonHeapUsedInMB() |
double |
getMemoryNonHeapUsedPerc()
Returns the memory non heap percentage from used to the max.
|
int |
getPeakThreadCount()
Returns the maximum number of of threads that were running in the VM since it has started
|
VirtualMachineStatistics |
getPrevious()
Returns the previous statistics sampled.
|
long |
getPreviousTimestamp()
Returns the previous timestamp of the statistics sampled,
-1 if this is the
first one. |
int |
getThreadCount()
Returns the number of currently running threads in this virtual machine
|
List<VirtualMachineStatistics> |
getTimeline()
Returns the timeline (from newest to oldest) history statistics, including this one.
|
long |
getTimestamp()
Return the timestamp when the statistics were taken.
|
long |
getUptime() |
boolean |
isNA()
Returns
true if this is not valid statistics. |
boolean isNA()
true
if this is not valid statistics.VirtualMachineDetails getDetails()
List<VirtualMachineStatistics> getTimeline()
VirtualMachineStatistics getPrevious()
null
if this is the first one or
bounded by the history size.long getPreviousTimestamp()
-1
if this is the
first one.long getTimestamp()
long getAdminTimestamp()
long getUptime()
long getMemoryHeapCommittedInBytes()
double getMemoryHeapCommittedInMB()
double getMemoryHeapCommittedInGB()
long getMemoryHeapUsedInBytes()
double getMemoryHeapUsedInMB()
double getMemoryHeapUsedInGB()
double getMemoryHeapUsedPerc()
double getMemoryHeapCommittedUsedPerc()
long getMemoryNonHeapCommittedInBytes()
double getMemoryNonHeapCommittedInMB()
double getMemoryNonHeapCommittedInGB()
long getMemoryNonHeapUsedInBytes()
double getMemoryNonHeapUsedInMB()
double getMemoryNonHeapUsedInGB()
double getMemoryNonHeapUsedPerc()
double getMemoryNonHeapCommittedUsedPerc()
int getThreadCount()
int getPeakThreadCount()
long getGcCollectionCount()
long getGcCollectionTime()
double getGcCollectionPerc()
double getCpuPerc()
String getCpuPercFormatted()
double getCpuPercAverage(long requestedTotalTime, TimeUnit timeUnit)
StatisticsMonitor.setStatisticsHistorySize(int)
or increase statistics interval
StatisticsMonitor.setStatisticsInterval(long, TimeUnit)
.requestedTotalTime
- The period of time to average the cpu percentage starting with this
statisticstimeUnit
- Time units for totalTimeCopyright © GigaSpaces.