Package org.apache.geode.management
Class JVMMetrics
java.lang.Object
org.apache.geode.management.JVMMetrics
- All Implemented Interfaces:
Serializable
Composite data type used to distribute metrics for the JVM running a GemFire member.
- Since:
- GemFire 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJVMMetrics(long gcCount, long gcTimeMillis, long initMemory, long committedMemory, long usedMemory, long maxMemory, int totalThreads) This constructor is to be used by internal JMX framework only. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current number of megabytes of memory allocated.longReturns the number of times garbage collection has occurred.longReturns the amount of time (in milliseconds) spent on garbage collection.longReturns the initial number of megabytes of memory requested from the operating system.longReturns the maximum number of megabytes of memory available from the operating system.intReturns the number of threads in use.longReturns the current number of megabytes of memory being used.toString()String representation of JVMMetrics
-
Constructor Details
-
JVMMetrics
@ConstructorProperties({"gcCount","gcTimeMillis","initMemory","committedMemory","usedMemory","maxMemory","totalThreads"}) public JVMMetrics(long gcCount, long gcTimeMillis, long initMemory, long committedMemory, long usedMemory, long maxMemory, int totalThreads) This constructor is to be used by internal JMX framework only. User should not try to create an instance of this class.- Parameters:
gcCount- the number of times garbage collection has occurredgcTimeMillis- the amount of time (in milliseconds) spent on garbage collectioninitMemory- the initial number of megabytes of memory requested from the operating systemcommittedMemory- the current number of megabytes of memory allocatedusedMemory- the current number of megabytes of memory being usedmaxMemory- the maximum number of megabytes of memory available from the operating systemtotalThreads- he number of threads in use
-
-
Method Details
-
getGcCount
public long getGcCount()Returns the number of times garbage collection has occurred.- Returns:
- the number of times garbage collection has occurred
-
getGcTimeMillis
public long getGcTimeMillis()Returns the amount of time (in milliseconds) spent on garbage collection.- Returns:
- the amount of time (in milliseconds) spent on garbage collection
-
getInitMemory
public long getInitMemory()Returns the initial number of megabytes of memory requested from the operating system.- Returns:
- the initial number of megabytes of memory requested from the operating system
-
getCommittedMemory
public long getCommittedMemory()Returns the current number of megabytes of memory allocated.- Returns:
- the current number of megabytes of memory allocated
-
getUsedMemory
public long getUsedMemory()Returns the current number of megabytes of memory being used.- Returns:
- the current number of megabytes of memory being used
-
getMaxMemory
public long getMaxMemory()Returns the maximum number of megabytes of memory available from the operating system.- Returns:
- the maximum number of megabytes of memory available from the operating system
-
getTotalThreads
public int getTotalThreads()Returns the number of threads in use.- Returns:
- the number of threads in use
-
toString
String representation of JVMMetrics
-