@Singleton @Configurable public class DumpHeap extends AbstractHealthAction
<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>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HPROF_LOG_TYPE |
static java.lang.String |
LOG_TYPE |
Constructor and Description |
---|
DumpHeap() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
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.
|
add, addListener, doAction, getPredicates, start, stop, toString
public static final java.lang.String LOG_TYPE
public static final java.lang.String HPROF_LOG_TYPE
@PostConstruct public void init()
init
in class AbstractHealthAction
public boolean isRaw()
@Configurable public void setLog(boolean isLog)
@Deprecated @Configurable public void setRaw(boolean raw)
@Configurable public void setHprof(boolean isHprof)
@Configurable public void setHprofPath(Path hprofPath)
@Deprecated @Configurable public void setHprofDir(Path hprofPath)
public void setHprofPathFormat(java.lang.String hprofPathFormat)
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception