|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Exposes runtime data about the JRockit Virtual Machine (VM) that is running the current WebLogic Server instance. You cannot change the VM's operating parameters while the VM is active. Instead, use the startup options that are described in the JRockit documentation.
Method Summary | |
double |
getAllProcessorsAverageLoad()
Displays a snapshot of the average load of all processors in the host computer. |
long |
getConstructorInvocationCount(java.lang.reflect.Constructor constructor)
Indicates the number of times a constructor has been invoked since enabling invocation counting. |
long |
getConstructorTiming(java.lang.reflect.Constructor constructor)
Indicates the amount of time (in milliseconds) the Virtual Machine has spent in the constructor since enabling time measuring. |
long |
getExceptionCount(java.lang.Class throwableClass)
Indicates the number of times an exception type has been thrown since enabling excpetion counting. |
long |
getFreeHeap()
Indicates the amount (in bytes) of Java heap memory that is currently free in the Virtual Machine. |
long |
getFreePhysicalMemory()
Indicates the amount (in bytes) of physical memory that is currently free on the host computer. |
java.lang.String |
getGcAlgorithm()
Indicates the type of garbage collector (GC) that the Virtual Machine is using. |
java.lang.String |
getJVMDescription()
Describes the Java Virtual Machine. |
double |
getJvmProcessorLoad()
Returns a snapshot of the load that the Virutal Machine is placing on all processors in the host computer. |
long |
getLastGCEnd()
Indicates the time at which the last garbage collection run ended. |
long |
getLastGCStart()
Indicates the time at which the last garbage collection run started. |
long |
getMethodInvocationCount(java.lang.reflect.Method method)
Indicates the number of times a method has been invoked since enabling invocation counting. |
long |
getMethodTiming(java.lang.reflect.Method method)
|
java.lang.String |
getName()
Indicates the name of the Java Virtual Machine. |
int |
getNumberOfDaemonThreads()
Indicates the number of daemon Java threads currently running in the Virtual Machine across all processors. |
int |
getNumberOfProcessors()
Displays the number of processors on the Virtual Machine's host computer. |
java.lang.String |
getThreadStackDump()
Provides a stack dump of all live threads in the Virtual Machine (VM). |
long |
getTotalGarbageCollectionCount()
Indicates the number of garbage collection runs that have occurred since the Virtual Machine was started. |
long |
getTotalGarbageCollectionTime()
Indicates the number of milliseconds that the Virtual Machine has spent on all garbage collection runs since the VM was started. |
long |
getTotalHeap()
Indicates the amount (in bytes) of memory currently allocated to the Virtual Machine's Java heap. |
int |
getTotalNumberOfThreads()
Indicates the number of Java threads (daemon and non-daemon) that are currently running in the Virtual Machine across all processors. |
long |
getTotalNurserySize()
Indicates the amount (in bytes) of memory that is currently allocated to the nursery. |
long |
getTotalPhysicalMemory()
Indicates the amount (in bytes) of physical memory on the host computer. |
long |
getUptime()
Indicates the number of milliseconds that the Virtual Machine has been running. |
long |
getUsedHeap()
Indicates the amount (in bytes) of Java heap memory that is currently being used by the Virtual Machine. |
long |
getUsedPhysicalMemory()
Indicates the amount (in bytes) of physical memory that is currently being used on the host computer. |
java.lang.String |
getVendor()
Indicates the name of the JVM vendor. |
java.lang.String |
getVersion()
Indicates the current version of Java Virtual Machine. |
boolean |
isConcurrent()
Indicates whether the VM's garbage collector runs in a separate Java thread concurrently with other Java threads. |
boolean |
isConstructorInvocationCountEnabled(java.lang.reflect.Constructor cons)
Indicates whether the Virtual Machine counts how many times a constructor is invoked. |
boolean |
isConstructorTimingEnabled(java.lang.reflect.Constructor constructor)
Indicates whether the Virtual Machine measures how much time it spends in a constructor. |
boolean |
isExceptionCountEnabled(java.lang.Class throwableClass)
Indicates whether the Virtual Machine counts how many times an exception is thrown. |
boolean |
isGCHandlesCompaction()
Indicates whether the VM's garbage collector compacts the Java heap. |
boolean |
isGenerational()
Indicates whether the VM's garbage collector uses a nursery space. |
boolean |
isIncremental()
Indicates whether the VM's garbage collector collects (increments) garbage as it scans the memory space and dumps the garbage at the end of its cycle. |
boolean |
isMethodInvocationCountEnabled(java.lang.reflect.Method method)
Indicates whether the Virtual Machine counts how many times a method is invoked. |
boolean |
isMethodTimingEnabled(java.lang.reflect.Method method)
Indicates whether the Virtual Machine measures how much time it spends in a method. |
boolean |
isParallel()
Indicates whether the VM's garbage collector is able to run in parallel on multiple processors if multiple processors are available. |
Methods inherited from interface weblogic.management.runtime.JVMRuntimeMBean |
getHeapFreeCurrent,
getHeapSizeCurrent,
getJavaVendor,
getJavaVersion,
getJavaVMVendor,
getOSName,
getOSVersion |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public long getTotalPhysicalMemory()
public long getFreePhysicalMemory()
public long getUsedPhysicalMemory()
public long getTotalHeap()
#getMaxHeap()
.
public long getFreeHeap()
public long getUsedHeap()
public long getTotalNurserySize()
The nursery is the area of the Java heap that the VM allocates to most objects. Instead of garbage collecting the entire heap, generational garbage collectors focus on the nursery. Because most objects die young, most of the time it is sufficient to garbage collect only the nursery and not the entire heap.
If you are not using a generational garbage collector, the nursery
size is 0
.
public java.lang.String getGcAlgorithm()
JRockit provides the following types of GCs:
public long getTotalGarbageCollectionCount()
public long getLastGCStart() throws NotFoundException
public long getLastGCEnd() throws NotFoundException
public long getTotalGarbageCollectionTime() throws NotFoundException
public boolean isGCHandlesCompaction() throws NotFoundException
public boolean isConcurrent() throws NotFoundException
public boolean isGenerational() throws NotFoundException
A nursery is the area of the Java heap that the VM allocates to most objects. Instead of garbage collecting the entire heap, generational garbage collectors focus on the nursery. Because most objects die young, most of the time it is sufficient to garbage collect only the nursery and not the entire heap.
public boolean isIncremental() throws NotFoundException
With a non-incremental garbage collector, garbage is dumped as soon as it is encountered.
public boolean isParallel() throws NotFoundException
public boolean isMethodTimingEnabled(java.lang.reflect.Method method) throws NotFoundException
method
- the method you want to check.public long getMethodTiming(java.lang.reflect.Method method) throws NotFoundException
public boolean isMethodInvocationCountEnabled(java.lang.reflect.Method method) throws NotFoundException
method
- the method you want to check.public long getMethodInvocationCount(java.lang.reflect.Method method) throws NotFoundException
method
- the method you want to check.public boolean isConstructorTimingEnabled(java.lang.reflect.Constructor constructor) throws NotFoundException
constructor
- the constructor you want to check.public long getConstructorTiming(java.lang.reflect.Constructor constructor) throws NotFoundException
constructor
- the constructor you want to check.public boolean isConstructorInvocationCountEnabled(java.lang.reflect.Constructor cons) throws NotFoundException
cons
- the constructor you want to check.public long getConstructorInvocationCount(java.lang.reflect.Constructor constructor) throws NotFoundException
constructor
- - the constructor for which to return the invocation count.public boolean isExceptionCountEnabled(java.lang.Class throwableClass) throws java.lang.ClassCastException
throwableClass
- the exception class to get the counter for.public long getExceptionCount(java.lang.Class throwableClass)
throwableClass
- the exception class to get the counter for. If the
throwableClass is null, a NullPointerException will be thrown.public int getTotalNumberOfThreads()
public int getNumberOfDaemonThreads()
public java.lang.String getThreadStackDump()
public long getUptime()
public java.lang.String getJVMDescription()
public java.lang.String getVendor()
public java.lang.String getVersion()
public java.lang.String getName()
public int getNumberOfProcessors()
1
.
public double getAllProcessorsAverageLoad()
getJvmProcessorLoad(0)
.
The value is returned as a double, where 1.0 represents 100% load (no idle time) and 0.0 represents 0% load (pure idle time).
#getProcessorLoad(int)
public double getJvmProcessorLoad()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |