@Deprecated public class JRockitRuntime extends JVMRuntime implements JRockitRuntimeMBean
JVMRuntime.ThreadDumpGenerator
descriptor, name, parent, registered, type
Constructor and Description |
---|
JRockitRuntime()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
double |
getAllProcessorsAverageLoad()
Deprecated.
A snapshot of the average load of all processors in the host
computer.
|
long |
getConstructorInvocationCount(java.lang.reflect.Constructor constructor)
Deprecated.
The number of times a constructor has been invoked since
enabling invocation counting.
|
long |
getConstructorTiming(java.lang.reflect.Constructor constructor)
Deprecated.
The amount of time (in milliseconds) the Virtual Machine has
spent in the constructor since enabling time measuring.
|
java.util.List |
getCPUs()
Deprecated.
A description of the CPUs in the host computer.
|
long |
getExceptionCount(java.lang.Class throwableClass)
Deprecated.
The number of times an exception type has been thrown since
enabling exception counting.
|
long |
getFreeHeap()
Deprecated.
The amount (in bytes) of Java heap memory that is currently free
in the Virtual Machine.
|
long |
getFreePhysicalMemory()
Deprecated.
The amount (in bytes) of physical memory that is currently free
on the host computer.
|
java.lang.String |
getGcAlgorithm()
Deprecated.
The type of garbage collector (GC) that the Virtual Machine is
using.
|
java.util.Collection |
getHardwareComponents()
Deprecated.
A description of all hardware components available to the host
computer.
|
java.lang.String |
getJVMDescription()
Deprecated.
A description of the Java Virtual Machine.
|
double |
getJvmProcessorLoad()
Deprecated.
A snapshot of the load that the Virtual Machine is placing on
all processors in the host computer.
|
long |
getLastGCEnd()
Deprecated.
The time at which the last garbage collection run ended.
|
long |
getLastGCStart()
Deprecated.
The time at which the last garbage collection run started.
|
long |
getMaxHeapSize()
Deprecated.
The maximum amount of memory (in bytes) that the Virtual Machine
can allocate for its Java heap.
|
long |
getMethodInvocationCount(java.lang.reflect.Method method)
Deprecated.
The number of times a method has been invoked since enabling
invocation counting.
|
long |
getMethodTiming(java.lang.reflect.Method method)
Deprecated.
The amount of time (in milliseconds) the Virtual Machine has
spent in the method since enabling time measuring.
|
java.util.Collection |
getNICs()
Deprecated.
A description of the network interface cards on the host
computer.
|
int |
getNumberOfDaemonThreads()
Deprecated.
The number of daemon Java threads currently running in the
Virtual Machine across all processors.
|
int |
getNumberOfProcessors()
Deprecated.
The number of processors on the Virtual Machine's host computer.
|
long |
getPauseTimeTarget()
Deprecated.
Gets the maximum GC pause time if set
|
java.util.Collection |
getThreadSnapShots()
Deprecated.
Snapshots of live threads in the Virtual Machine (VM).
|
long |
getTotalGarbageCollectionCount()
Deprecated.
The number of garbage collection runs that have occurred since
the Virtual Machine was started.
|
long |
getTotalGarbageCollectionTime()
Deprecated.
The number of milliseconds that the Virtual Machine has spent on
all garbage collection runs since the VM was started.
|
long |
getTotalHeap()
Deprecated.
The amount (in bytes) of memory currently allocated to the
Virtual Machine's Java heap.
|
int |
getTotalNumberOfThreads()
Deprecated.
The number of Java threads (daemon and non-daemon) that are
currently running in the Virtual Machine across all processors.
|
long |
getTotalNurserySize()
Deprecated.
The amount (in bytes) of memory that is currently allocated to
the nursery.
|
long |
getTotalPhysicalMemory()
Deprecated.
The amount (in bytes) of physical memory on the host
computer.
|
long |
getUsedHeap()
Deprecated.
The amount (in bytes) of Java heap memory that is currently
being used by the Virtual Machine.
|
long |
getUsedPhysicalMemory()
Deprecated.
The amount (in bytes) of physical memory that is currently being
used on the host computer.
|
java.lang.String |
getVendor()
Deprecated.
The name of the JVM vendor.
|
java.lang.String |
getVersion()
Deprecated.
The current version of Java Virtual Machine.
|
boolean |
isConcurrent()
Deprecated.
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)
Deprecated.
Indicates whether the Virtual Machine counts how many times a
constructor is invoked.
|
boolean |
isConstructorTimingEnabled(java.lang.reflect.Constructor constructor)
Deprecated.
Indicates whether the Virtual Machine measures how much time it
spends in a constructor.
|
boolean |
isExceptionCountEnabled(java.lang.Class throwableClass)
Deprecated.
Indicates whether the Virtual Machine counts how many times an
exception is thrown.
|
boolean |
isGCHandlesCompaction()
Deprecated.
Indicates whether the VM's garbage collector compacts the Java
heap.
|
boolean |
isGenerational()
Deprecated.
Indicates whether the VM's garbage collector uses a nursery
space.
|
boolean |
isIncremental()
Deprecated.
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)
Deprecated.
Indicates whether the Virtual Machine counts how many times a
method is invoked.
|
boolean |
isMethodTimingEnabled(java.lang.reflect.Method method)
Deprecated.
Indicates whether the Virtual Machine measures how much time it
spends in a method.
|
boolean |
isParallel()
Deprecated.
Indicates whether the VM's garbage collector is able to run in
parallel on multiple processors if multiple processors are
available.
|
void |
setPauseTimeTarget(long pauseTime)
Deprecated.
Sets the maximum GC pause time
|
getHeapFreeCurrent, getHeapFreePercent, getHeapSizeCurrent, getHeapSizeMax, getJavaVendor, getJavaVersion, getJavaVMVendor, getOSName, getOSVersion, getThreadStackDump, getUptime, onGarbageCollection, runGC, sendMemoryNotification, shutdown, theOne
_createHelper, _postSet, _postSet, _postSet, _postSet, _postSet, addChild, addNotificationListener, addPropertyChangeListener, createChildCopy, getAttribute, getAttributes, getMBeanInfo, getMetaData, getName, getNotificationInfo, getObjectName, getParent, getParentAttribute, getPropertyChangeListeners, getRegistrationManager, getRestParent, getType, invoke, isCachingDisabled, isEditable, isRegistered, pluralize, postDeregister, postRegister, preDeregister, preRegister, register, removeChild, removeNotificationListener, removePropertyChangeListener, setAttribute, setAttributes, setMetaData, setName, setParent, setRestParent, setRuntimeMBeanHelper, setType, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getHeapFreeCurrent, getHeapFreePercent, getHeapSizeCurrent, getHeapSizeMax, getJavaVendor, getJavaVersion, getJavaVMVendor, getOSName, getOSVersion, getThreadStackDump, getUptime, runGC, shutdown
addPropertyChangeListener, preDeregister, removePropertyChangeListener
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
public JRockitRuntime() throws ManagementException
ManagementException
public long getTotalPhysicalMemory()
JRockitRuntimeMBean
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.
getTotalPhysicalMemory
in interface JRockitRuntimeMBean
public long getFreePhysicalMemory()
JRockitRuntimeMBean
The amount (in bytes) of physical memory that is currently free on the host computer.
getFreePhysicalMemory
in interface JRockitRuntimeMBean
public long getUsedPhysicalMemory()
JRockitRuntimeMBean
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.
getUsedPhysicalMemory
in interface JRockitRuntimeMBean
public long getMaxHeapSize()
JRockitRuntimeMBean
The maximum amount of memory (in bytes) that the Virtual Machine can allocate for its Java heap.
This number is fixed at startup time of the VM, typically by the
-Mx
option.
getMaxHeapSize
in interface JRockitRuntimeMBean
public long getTotalHeap()
JRockitRuntimeMBean
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.
getTotalHeap
in interface JRockitRuntimeMBean
JRockitRuntimeMBean.getMaxHeapSize()
public long getFreeHeap()
JRockitRuntimeMBean
The amount (in bytes) of Java heap memory that is currently free in the Virtual Machine.
getFreeHeap
in interface JRockitRuntimeMBean
public long getUsedHeap()
JRockitRuntimeMBean
The amount (in bytes) of Java heap memory that is currently being used by the Virtual Machine.
getUsedHeap
in interface JRockitRuntimeMBean
public long getTotalNurserySize()
JRockitRuntimeMBean
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
getTotalNurserySize
in interface JRockitRuntimeMBean
public java.lang.String getGcAlgorithm()
JRockitRuntimeMBean
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.
getGcAlgorithm
in interface JRockitRuntimeMBean
public long getTotalGarbageCollectionCount()
JRockitRuntimeMBean
The number of garbage collection runs that have occurred since the Virtual Machine was started.
getTotalGarbageCollectionCount
in interface JRockitRuntimeMBean
public long getLastGCStart() throws NotFoundException
JRockitRuntimeMBean
The time at which the last garbage collection run started.
getLastGCStart
in interface JRockitRuntimeMBean
NotFoundException
public long getLastGCEnd() throws NotFoundException
JRockitRuntimeMBean
The time at which the last garbage collection run ended.
getLastGCEnd
in interface JRockitRuntimeMBean
NotFoundException
public long getTotalGarbageCollectionTime() throws NotFoundException
JRockitRuntimeMBean
The number of milliseconds that the Virtual Machine has spent on all garbage collection runs since the VM was started.
getTotalGarbageCollectionTime
in interface JRockitRuntimeMBean
NotFoundException
public boolean isGCHandlesCompaction() throws NotFoundException
JRockitRuntimeMBean
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.
isGCHandlesCompaction
in interface JRockitRuntimeMBean
NotFoundException
public boolean isConcurrent() throws NotFoundException
JRockitRuntimeMBean
Indicates whether the VM's garbage collector runs in a separate Java thread concurrently with other Java threads.
isConcurrent
in interface JRockitRuntimeMBean
NotFoundException
public boolean isGenerational() throws NotFoundException
JRockitRuntimeMBean
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.
isGenerational
in interface JRockitRuntimeMBean
NotFoundException
public boolean isIncremental() throws NotFoundException
JRockitRuntimeMBean
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.
isIncremental
in interface JRockitRuntimeMBean
NotFoundException
public boolean isParallel() throws NotFoundException
JRockitRuntimeMBean
Indicates whether the VM's garbage collector is able to run in parallel on multiple processors if multiple processors are available.
isParallel
in interface JRockitRuntimeMBean
NotFoundException
public void setPauseTimeTarget(long pauseTime) throws NotFoundException
JRockitRuntimeMBean
Sets the maximum GC pause time
setPauseTimeTarget
in interface JRockitRuntimeMBean
NotFoundException
public long getPauseTimeTarget() throws NotFoundException
JRockitRuntimeMBean
Gets the maximum GC pause time if set
getPauseTimeTarget
in interface JRockitRuntimeMBean
NotFoundException
public boolean isMethodTimingEnabled(java.lang.reflect.Method method) throws NotFoundException
JRockitRuntimeMBean
Indicates whether the Virtual Machine measures how much time it spends in a method.
isMethodTimingEnabled
in interface JRockitRuntimeMBean
method
- the method you want to check.NotFoundException
public long getMethodTiming(java.lang.reflect.Method method) throws NotFoundException
JRockitRuntimeMBean
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.
getMethodTiming
in interface JRockitRuntimeMBean
method
- the method we wish to check.NotFoundException
public boolean isMethodInvocationCountEnabled(java.lang.reflect.Method method) throws NotFoundException
JRockitRuntimeMBean
Indicates whether the Virtual Machine counts how many times a method is invoked.
isMethodInvocationCountEnabled
in interface JRockitRuntimeMBean
method
- the method you want to check.NotFoundException
public long getMethodInvocationCount(java.lang.reflect.Method method) throws NotFoundException
JRockitRuntimeMBean
The number of times a method has been invoked since enabling invocation counting.
getMethodInvocationCount
in interface JRockitRuntimeMBean
method
- the method you want to check.NotFoundException
public boolean isConstructorTimingEnabled(java.lang.reflect.Constructor constructor) throws NotFoundException
JRockitRuntimeMBean
Indicates whether the Virtual Machine measures how much time it spends in a constructor.
isConstructorTimingEnabled
in interface JRockitRuntimeMBean
constructor
- the constructor you want to check.NotFoundException
public long getConstructorTiming(java.lang.reflect.Constructor constructor) throws NotFoundException
JRockitRuntimeMBean
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.
getConstructorTiming
in interface JRockitRuntimeMBean
constructor
- the constructor you want to check.NotFoundException
public boolean isConstructorInvocationCountEnabled(java.lang.reflect.Constructor cons) throws NotFoundException
JRockitRuntimeMBean
Indicates whether the Virtual Machine counts how many times a constructor is invoked.
isConstructorInvocationCountEnabled
in interface JRockitRuntimeMBean
cons
- the constructor you want to check.NotFoundException
public long getConstructorInvocationCount(java.lang.reflect.Constructor constructor) throws NotFoundException
JRockitRuntimeMBean
The number of times a constructor has been invoked since enabling invocation counting.
getConstructorInvocationCount
in interface JRockitRuntimeMBean
constructor
- - the constructor for which to return the invocation count.NotFoundException
public boolean isExceptionCountEnabled(java.lang.Class throwableClass) throws java.lang.ClassCastException
JRockitRuntimeMBean
Indicates whether the Virtual Machine counts how many times an exception is thrown.
isExceptionCountEnabled
in interface JRockitRuntimeMBean
throwableClass
- the exception class to get the counter for.java.lang.ClassCastException
- thrown if the argument is not a subclass of Throwablepublic long getExceptionCount(java.lang.Class throwableClass)
JRockitRuntimeMBean
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.
getExceptionCount
in interface JRockitRuntimeMBean
throwableClass
- the exception class to get the counter for. If the throwableClass is null, a NullPointerException will be thrown.public int getTotalNumberOfThreads()
JRockitRuntimeMBean
The number of Java threads (daemon and non-daemon) that are currently running in the Virtual Machine across all processors.
getTotalNumberOfThreads
in interface JRockitRuntimeMBean
public int getNumberOfDaemonThreads()
JRockitRuntimeMBean
The number of daemon Java threads currently running in the Virtual Machine across all processors.
getNumberOfDaemonThreads
in interface JRockitRuntimeMBean
public java.util.Collection getThreadSnapShots()
JRockitRuntimeMBean
Snapshots of live threads in the Virtual Machine (VM). The thread snapshots represent the system state only at a single moment.
After the snapshot, the threads resume or terminate as required by the VM. Threads that are in the process of being created will not be included in the snapshot.
getThreadSnapShots
in interface JRockitRuntimeMBean
public java.lang.String getJVMDescription()
JRockitRuntimeMBean
A description of the Java Virtual Machine. For example, "BEA WebLogic JRockit Java Virtual Machine."
getJVMDescription
in interface JRockitRuntimeMBean
public java.lang.String getVendor()
JRockitRuntimeMBean
The name of the JVM vendor.
getVendor
in interface JRockitRuntimeMBean
public java.lang.String getVersion()
JRockitRuntimeMBean
The current version of Java Virtual Machine.
getVersion
in interface JRockitRuntimeMBean
public int getNumberOfProcessors()
JRockitRuntimeMBean
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
.
getNumberOfProcessors
in interface JRockitRuntimeMBean
public double getAllProcessorsAverageLoad()
JRockitRuntimeMBean
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).
getAllProcessorsAverageLoad
in interface JRockitRuntimeMBean
public double getJvmProcessorLoad()
JRockitRuntimeMBean
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).
getJvmProcessorLoad
in interface JRockitRuntimeMBean
public java.util.List getCPUs() throws NotFoundException
JRockitRuntimeMBean
A description of the CPUs in the host computer. If there are multiple CPUs, this value is an ordered collection of CPU objects.
getCPUs
in interface JRockitRuntimeMBean
NotFoundException
public java.util.Collection getHardwareComponents() throws NotFoundException
JRockitRuntimeMBean
A description of all hardware components available to the host computer.
getHardwareComponents
in interface JRockitRuntimeMBean
NotFoundException
public java.util.Collection getNICs() throws NotFoundException
JRockitRuntimeMBean
A description of the network interface cards on the host computer.
getNICs
in interface JRockitRuntimeMBean
NotFoundException