com.caucho.health.action
Class DumpHeap

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
      extended by com.caucho.health.action.DumpHeap
All Implemented Interfaces:
HealthAction
Direct Known Subclasses:
DumpHprofHeap

@Singleton
@Configurable
public class DumpHeap
extends AbstractHealthAction

Health action to create a heap dump. The heap dump will be logged to the internal log database and the resin log file using com.caucho.health.action.DumpHeap as the class, at info level.

<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
   <url>http://localhost:8080/test-ping.jsp</url>
 </health:HttpStatusHealthCheck>
 
 <health:DumpHeap>
   <health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
   <health:IfRechecked/>
 </health:DumpHeap>
 


Field Summary
static java.lang.String HPROF_LOG_TYPE
           
static java.lang.String LOG_TYPE
           
 
Constructor Summary
DumpHeap()
           
 
Method Summary
 void doActionImpl(HealthEvent healthEvent)
           
 void init()
           
 boolean isRaw()
           
 void setHprof(boolean isHprof)
          Generate an HPROF heap dump instead of human readable heap dump.
 void setHprofDir(Path hprofPath)
          Deprecated. 
 void setHprofPath(Path hprofPath)
          Output path for the hprof dump file.
 void setHprofPathFormat(java.lang.String hprofPathFormat)
          Format for generating dynamic path names with timestamps.
 void setLog(boolean isLog)
          Output to server log in addition to internal database (default true).
 void setRaw(boolean raw)
          Deprecated. 
 
Methods inherited from class com.caucho.health.action.AbstractHealthAction
add, addListener, doAction, getPredicates, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_TYPE

public static final java.lang.String LOG_TYPE
See Also:
Constant Field Values

HPROF_LOG_TYPE

public static final java.lang.String HPROF_LOG_TYPE
See Also:
Constant Field Values
Constructor Detail

DumpHeap

public DumpHeap()
Method Detail

init

@PostConstruct
public void init()
Overrides:
init in class AbstractHealthAction

isRaw

public boolean isRaw()

setLog

@Configurable
public void setLog(boolean isLog)
Output to server log in addition to internal database (default true).


setRaw

@Deprecated
@Configurable
public void setRaw(boolean raw)
Deprecated. 

Generate an HPROF heap dump instead of human readable heap dump.


setHprof

@Configurable
public void setHprof(boolean isHprof)
Generate an HPROF heap dump instead of human readable heap dump.


setHprofPath

@Configurable
public void setHprofPath(Path hprofPath)
Output path for the hprof dump file. Default log/heap.hprof


setHprofDir

@Deprecated
@Configurable
public void setHprofDir(Path hprofPath)
Deprecated. 


setHprofPathFormat

public void setHprofPathFormat(java.lang.String hprofPathFormat)
Format for generating dynamic path names with timestamps. Default log/heap.hprof


doActionImpl

public void doActionImpl(HealthEvent healthEvent)
Specified by:
doActionImpl in class AbstractHealthAction