org.cougaar.core.qos.profile
Class JavaHeapSize

java.lang.Object
  extended by org.cougaar.util.GenericStateModelAdapter
      extended by org.cougaar.core.qos.profile.ProfilerBase
          extended by org.cougaar.core.qos.profile.JavaHeapSize
All Implemented Interfaces:
org.cougaar.core.component.Component, ProfilerService.Client, org.cougaar.util.GenericStateModel

public class JavaHeapSize
extends ProfilerBase

This component profiles the JVM heap size (used, free, total, max).

Example output:

   jvmheap - #used_bytes, free_bytes, total_bytes, max_bytes
   jvmheap - 5430096, 5084336, 10514432, 66650112
 
In this example, the current JVM heap size is 5.18 mb.

See Also:
required coordinator component

Field Summary
 
Fields inherited from class org.cougaar.core.qos.profile.ProfilerBase
align, header, sb
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Constructor Summary
JavaHeapSize()
           
 
Method Summary
 void run()
           
 
Methods inherited from class org.cougaar.core.qos.profile.ProfilerBase
findServiceLater, getRunCount, load, log, setServiceBroker, toHeader
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState, halt, initialize, resume, start, stop, suspend, transitState, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cougaar.util.GenericStateModel
getModelState, halt, initialize, resume, start, stop, suspend, unload
 

Constructor Detail

JavaHeapSize

public JavaHeapSize()
Method Detail

run

public void run()
Specified by:
run in interface ProfilerService.Client
Specified by:
run in class ProfilerBase