public class Stats extends Object
Constructor and Description |
---|
Stats()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getCommittedHeap() |
long |
getCpuTime()
Returns total amount of time the process has been scheduled or executed so far
in both kernel and user modes.
|
long |
getFreePhysicalMem() |
long |
getMaxHeap() |
long |
getSoftmxHeap() |
void |
getStats()
Native method used to retrieve the heap/OS stats.
|
double |
getSysLoadAvg() |
long |
getTotPhysicalMem() |
long |
getUsedHeap() |
void |
setFields(long committed,
long used,
long max,
long free,
long tot,
double sysLoadAvg,
long cpuTime,
long softmxHeap)
To avoid allocating new objects, this function merely sets
the member variables of this class as it is called from a
native.
|
public void setFields(long committed, long used, long max, long free, long tot, double sysLoadAvg, long cpuTime, long softmxHeap)
committed
- is the committed heap size (bytes)used
- is the amount of used memory on the java heap (bytes)max
- is the maximum bound of the java heap (bytes)free
- is the amount of free physical memory (bytes)tot
- is the amount of total physical memory (bytes)sysLoadAvg
- is the system load average in decimal (capacity of cpu)cpuTime
- is the time elapsed since the start of the jvm processsoftmxHeap
- is the softmx heap value (-Xsoftmx or changed from MemoryMXBean) value in bytespublic long getCommittedHeap()
public long getUsedHeap()
public long getMaxHeap()
public long getSoftmxHeap()
public long getFreePhysicalMem()
public long getTotPhysicalMem()
public double getSysLoadAvg()
public long getCpuTime()
public void getStats()
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1998, 2025 IBM Corp. and others.