|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.MeasuredResource
org.rioproject.system.measurable.memory.ProcessMemoryUtilization
public class ProcessMemoryUtilization
Measured process memory utilization
| Constructor Summary | |
|---|---|
ProcessMemoryUtilization(String identifier,
double utilization,
double vSize,
double resident,
double shared,
double initHeap,
double usedHeap,
double maxHeap,
double committedHeap,
double initNonHeap,
double usedNonHeap,
double maxNonHeap,
double committedNonHeap,
ThresholdValues tVals)
Construct ProcessMemoryUtilization with parameters |
|
ProcessMemoryUtilization(String identifier,
double utilization,
double initHeap,
double usedHeap,
double maxHeap,
double committedHeap,
double initNonHeap,
double usedNonHeap,
double maxNonHeap,
double committedNonHeap,
ThresholdValues tVals)
Construct ProcessMemoryUtilization with parameters |
|
ProcessMemoryUtilization(String identifier,
double utilization,
double vSize,
double resident,
double shared,
ThresholdValues tVals)
Construct ProcessMemoryUtilization with parameters |
|
ProcessMemoryUtilization(String identifier,
double utilization,
ThresholdValues tVals)
Construct ProcessMemoryUtilization with parameters |
|
| Method Summary | |
|---|---|
double |
getCommittedHeap()
Get the amount of memory (in bytes) that is guaranteed to be available for use by the Java virtual machine. |
double |
getCommittedNonHeap()
Get the amount of non-heap memory (in MB) that is guaranteed to be available for use by the Java virtual machine. |
double |
getInitHeap()
Get the amount of heap memory in bytes that the Java virtual machine initially requests from the operating system for memory management. |
double |
getInitNonHeap()
Get the amount of non-heap memory (in MB) that the Java virtual machine initially requests from the operating system for memory management. |
double |
getMaxHeap()
Get the maximum amount of memory (in bytes) that can be used for heap memory management. |
double |
getMaxNonHeap()
Get the maximum amount of memory (in MB) that can be used for non-heap memory management. |
double |
getResident()
Get the Total process resident (real) memory |
double |
getShared()
Get the Total process shared memory |
double |
getUsedHeap()
Returns the current memory usage of the heap that is used for object allocation. |
double |
getUsedNonHeap()
Returns the current memory usage of the non-heap that is used for object allocation. |
double |
getVirtualMemorySize()
Get the Total process virtual memory |
String |
toString()
|
| Methods inherited from class org.rioproject.system.MeasuredResource |
|---|
equals, evaluate, getIdentifier, getThresholdValues, getValue, hashCode, thresholdCrossed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessMemoryUtilization(String identifier,
double utilization,
ThresholdValues tVals)
identifier - Identifier for the ProcessMemoryUtilizationutilization - The measured utilizationtVals - ThresholdValues for the ProcessMemoryUtilization
public ProcessMemoryUtilization(String identifier,
double utilization,
double initHeap,
double usedHeap,
double maxHeap,
double committedHeap,
double initNonHeap,
double usedNonHeap,
double maxNonHeap,
double committedNonHeap,
ThresholdValues tVals)
identifier - Identifier for the ProcessMemoryUtilizationutilization - The measured utilization, calculated as the
used-heap-use/total-heap-useinitHeap - The amount of heap memory (in MB) that the JVM
initially requestsusedHeap - The amount of heap memory (in MB) used for the processmaxHeap - The maximum amount of memory (in MB) for the JVMcommittedHeap - The amount of committed memory (in MB) for the JVMinitNonHeap - The amount of non-heap memory (in MB) that the JVM
initially requestsusedNonHeap - The amount of non-heap memory (in MB) used by the JVMmaxNonHeap - The current non-heap memory size (in MB) that is used
by the JVMcommittedNonHeap - The amount of non-heap committed memory (in MB)
for the JVMtVals - ThresholdValues for the ProcessMemoryUtilization
public ProcessMemoryUtilization(String identifier,
double utilization,
double vSize,
double resident,
double shared,
ThresholdValues tVals)
identifier - Identifier for the ProcessMemoryUtilizationutilization - The measured utilization, calculated as the
used-heap-use/total-heap-usevSize - Total process virtual memoryresident - Total process resident memoryshared - Total process shared memorytVals - ThresholdValues for the ProcessMemoryUtilization
public ProcessMemoryUtilization(String identifier,
double utilization,
double vSize,
double resident,
double shared,
double initHeap,
double usedHeap,
double maxHeap,
double committedHeap,
double initNonHeap,
double usedNonHeap,
double maxNonHeap,
double committedNonHeap,
ThresholdValues tVals)
identifier - Identifier for the ProcessMemoryUtilizationutilization - The measured utilizationvSize - Total process virtual memoryresident - Total process resident memoryshared - Total process shared memoryinitHeap - The amount of heap memory (in MB) that the JVM
initially requestsusedHeap - The amount of heap memory (in MB) used for the processmaxHeap - The maximum amount of memory (in MB) for the JVMcommittedHeap - The amount of committed memory (in MB) for the JVMinitNonHeap - The amount of non-heap memory (in MB) that the JVM
initially requestsusedNonHeap - The amount of non-heap memory (in MB) used by the JVMmaxNonHeap - The current non-heap memory size (in MB) that is used
by the JVMcommittedNonHeap - The amount of non-heap committed memory (in MB)
for the JVMtVals - ThresholdValues for the ProcessMemoryUtilization| Method Detail |
|---|
public double getVirtualMemorySize()
public double getResident()
public double getShared()
public double getUsedHeap()
The amount of used memory in the returned memory usage is the amount of memory occupied by both live objects and garbage objects that have not been collected, if any.
MemoryMXBean.getHeapMemoryUsage()public double getMaxHeap()
MemoryMXBean.getHeapMemoryUsage()public double getCommittedHeap()
MemoryMXBean.getHeapMemoryUsage()public double getInitHeap()
MemoryMXBean.getHeapMemoryUsage()public double getUsedNonHeap()
MemoryMXBean.getNonHeapMemoryUsage()public double getMaxNonHeap()
MemoryMXBean.getNonHeapMemoryUsage()public double getCommittedNonHeap()
MemoryMXBean.getNonHeapMemoryUsage()public double getInitNonHeap()
MemoryMXBean.getHeapMemoryUsage()public String toString()
toString in class MeasuredResource
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||