|
Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRockitRuntimeMBean
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.
The WebLogic JVM contains only one of these Runtime MBeans:
If the JVM is an instance of a JRockit JDK, then the JVM contains
JRockitRuntime MBean
.
Otherwise, it contains the JVMRuntimeMBean
.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX"
on http://www.oracle.com/technology/products/weblogic/index.html.
Method Summary | |
---|---|
double |
getAllProcessorsAverageLoad()
A snapshot of the average load of all processors in the host computer. |
long |
getConstructorInvocationCount(Constructor constructor)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
long |
getConstructorTiming(Constructor constructor)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
long |
getExceptionCount(Class throwableClass)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
long |
getFreeHeap()
The amount (in bytes) of Java heap memory that is currently free in the Virtual Machine. |
long |
getFreePhysicalMemory()
The amount (in bytes) of physical memory that is currently free on the host computer. |
String |
getGcAlgorithm()
The type of garbage collector (GC) that the Virtual Machine is using. |
String |
getJVMDescription()
A description of the Java Virtual Machine. |
double |
getJvmProcessorLoad()
A snapshot of the load that the Virtual Machine is placing on all processors in the host computer. |
long |
getLastGCEnd()
The time at which the last garbage collection run ended. |
long |
getLastGCStart()
The time at which the last garbage collection run started. |
long |
getMethodInvocationCount(Method method)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
long |
getMethodTiming(Method method)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
String |
getName()
The name of the Java Virtual Machine. |
int |
getNumberOfDaemonThreads()
The number of daemon Java threads currently running in the Virtual Machine across all processors. |
int |
getNumberOfProcessors()
The number of processors on the Virtual Machine's host computer. |
long |
getTotalGarbageCollectionCount()
The number of garbage collection runs that have occurred since the Virtual Machine was started. |
long |
getTotalGarbageCollectionTime()
The number of milliseconds that the Virtual Machine has spent on all garbage collection runs since the VM was started. |
long |
getTotalHeap()
The amount (in bytes) of memory currently allocated to the Virtual Machine's Java heap. |
int |
getTotalNumberOfThreads()
The number of Java threads (daemon and non-daemon) that are currently running in the Virtual Machine across all processors. |
long |
getTotalNurserySize()
The amount (in bytes) of memory that is currently allocated to the nursery. |
long |
getTotalPhysicalMemory()
The amount (in bytes) of physical memory on the host computer. |
long |
getUsedHeap()
The amount (in bytes) of Java heap memory that is currently being used by the Virtual Machine. |
long |
getUsedPhysicalMemory()
The amount (in bytes) of physical memory that is currently being used on the host computer. |
String |
getVendor()
The name of the JVM vendor. |
String |
getVersion()
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(Constructor cons)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
boolean |
isConstructorTimingEnabled(Constructor constructor)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
boolean |
isExceptionCountEnabled(Class throwableClass)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
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(Method method)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
boolean |
isMethodTimingEnabled(Method method)
Deprecated. 10.0.0.0 There will be no replacement for this method in future, since it will not be supported by JRockit management API. |
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, getHeapFreePercent, getHeapSizeCurrent, getHeapSizeMax, getJavaVendor, getJavaVersion, getJavaVMVendor, getOSName, getOSVersion, getThreadStackDump, getUptime |
Method Detail |
---|
long getTotalPhysicalMemory()
The amount (in bytes) of physical memory on the host computer.
The value does not include memory that an operating system makes available through swap space on a disk or other types of virtual memory.
long getFreePhysicalMemory()
The amount (in bytes) of physical memory that is currently free on the host computer.
long getUsedPhysicalMemory()
The amount (in bytes) of physical memory that is currently being used on the host computer.
The value describes the memory that is being used by all processes on the computer, not just by the Virtual Machine.
long getTotalHeap()
The amount (in bytes) of memory currently allocated to the Virtual Machine's Java heap.
This value, which is also known as the "heap size," may grow up to the specified maximum heap size.
JRockitRuntimeMBean.getMaxHeapSize()
long getFreeHeap()
The amount (in bytes) of Java heap memory that is currently free in the Virtual Machine.
long getUsedHeap()
The amount (in bytes) of Java heap memory that is currently being used by the Virtual Machine.
long getTotalNurserySize()
The amount (in bytes) of memory that is currently allocated to the nursery.
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
String getGcAlgorithm()
The type of garbage collector (GC) that the Virtual Machine is using.
JRockit provides the following types of GCs:
Generational Copying, which is suitable for testing applications on a desktop machine with a small (less then 128 MB) heap.
Single Spaced Concurrent, which reduces or eliminates pauses in the VM that are due to garbage collection. Because it trades memory throughput for reduced pause time, you generally need a larger heap size than with other GC types. If your ordinary Java threads create more garbage than this GC can collect, the VM will pause while the Java threads wait for the garbage collection to finish.
Generational Concurrent, which creates a "nursery" space within the heap. New objects are created within the nursery. When the nursery is full, JRockit "stops-the-world," removes the dead objects from the nursery, and moves live objects to a different space within the heap. Another thread runs in the background to remove dead objects from the non-nursery space. This GC type has a higher memory throughput than a single spaced concurrent GC.
Parallel, which allocates all objects to a single spaced heap. When the heap is full, all Java threads are stopped and every CPU is used to perform a complete garbage collection of the entire heap. This behavior causes longer pause times than for the concurrent collectors but maximizes memory throughput.
long getTotalGarbageCollectionCount()
The number of garbage collection runs that have occurred since the Virtual Machine was started.
long getLastGCStart() throws NotFoundException
The time at which the last garbage collection run started.
NotFoundException
long getLastGCEnd() throws NotFoundException
The time at which the last garbage collection run ended.
NotFoundException
long getTotalGarbageCollectionTime() throws NotFoundException
The number of milliseconds that the Virtual Machine has spent on all garbage collection runs since the VM was started.
NotFoundException
boolean isGCHandlesCompaction() throws NotFoundException
Indicates whether the VM's garbage collector compacts the Java heap.
Usually the heap is scattered throughout available memory. A garbage collector that compacts the heap defragments the memory space in addition to deleting unused objects.
NotFoundException
boolean isConcurrent() throws NotFoundException
Indicates whether the VM's garbage collector runs in a separate Java thread concurrently with other Java threads.
NotFoundException
boolean isGenerational() throws NotFoundException
Indicates whether the VM's garbage collector uses a nursery space.
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.
NotFoundException
boolean isIncremental() throws NotFoundException
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.
With a non-incremental garbage collector, garbage is dumped as soon as it is encountered.
NotFoundException
boolean isParallel() throws NotFoundException
Indicates whether the VM's garbage collector is able to run in parallel on multiple processors if multiple processors are available.
NotFoundException
boolean isMethodTimingEnabled(Method method) throws NotFoundException
Indicates whether the Virtual Machine measures how much time it spends in a method.
method
- the method you want to check.
NotFoundException
long getMethodTiming(Method method) throws NotFoundException
The amount of time (in milliseconds) the Virtual Machine has spent in the method since enabling time measuring.
If time measuring has not been enabled for the specified method, this method returns a null value.
Method
- the method we wish to check.
NotFoundException
boolean isMethodInvocationCountEnabled(Method method) throws NotFoundException
Indicates whether the Virtual Machine counts how many times a method is invoked.
method
- the method you want to check.
NotFoundException
long getMethodInvocationCount(Method method) throws NotFoundException
The number of times a method has been invoked since enabling invocation counting.
method
- the method you want to check.
NotFoundException
boolean isConstructorTimingEnabled(Constructor constructor) throws NotFoundException
Indicates whether the Virtual Machine measures how much time it spends in a constructor.
constructor
- the constructor you want to check.
NotFoundException
long getConstructorTiming(Constructor constructor) throws NotFoundException
The amount of time (in milliseconds) the Virtual Machine has spent in the constructor since enabling time measuring.
If time measuring hasn't been enabled for the specified constructor, this method returns a null value.
constructor
- the constructor you want to check.
NotFoundException
boolean isConstructorInvocationCountEnabled(Constructor cons) throws NotFoundException
Indicates whether the Virtual Machine counts how many times a constructor is invoked.
cons
- the constructor you want to check.
NotFoundException
long getConstructorInvocationCount(Constructor constructor) throws NotFoundException
The number of times a constructor has been invoked since enabling invocation counting.
constructor
- - the constructor for which to return the invocation count.
NotFoundException
boolean isExceptionCountEnabled(Class throwableClass) throws ClassCastException
Indicates whether the Virtual Machine counts how many times an exception is thrown.
throwableClass
- the exception class to get the counter for.
ClassCastException
- thrown if the argument is not a subclass of Throwablelong getExceptionCount(Class throwableClass)
The number of times an exception type has been thrown since enabling exception counting. If exception counting has not been enabled for the specified type, the result is unspecified.
throwableClass
- the exception class to get the counter for. If the throwableClass is null, a NullPointerException will be thrown.
int getTotalNumberOfThreads()
The number of Java threads (daemon and non-daemon) that are currently running in the Virtual Machine across all processors.
int getNumberOfDaemonThreads()
The number of daemon Java threads currently running in the Virtual Machine across all processors.
String getJVMDescription()
A description of the Java Virtual Machine. For example, "BEA WebLogic JRockit Java Virtual Machine."
String getVendor()
The name of the JVM vendor.
String getVersion()
The current version of Java Virtual Machine.
String getName()
The name of the Java Virtual Machine. For example, "WebLogic JRockit."
int getNumberOfProcessors()
The number of processors on the Virtual Machine's host computer.
If this is not a Symmetric Multi Processor (SMP) system, the value
will be 1
.
double getAllProcessorsAverageLoad()
A snapshot of the average load of all processors in the host
computer. If the computer has only one processor, this method
returns the same value as 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)
double getJvmProcessorLoad()
A snapshot of the load that the Virtual Machine is placing on all processors in the host computer. If the host contains multiple processors, the value represents a snapshot of the average load.
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).
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |