@Singleton @Configurable public class StartProfiler extends AbstractHealthAction
<health:ActionSequence>
<health:FailSafeRestart timeout="10m">
<health:DumpThreads/>
<health:DumpHeap/>
<health:StartProfiler active-time="5m"/>
<health:Restart/>
<health:IfHealthCritical time="5m"/>
</health:ActionSequence>
Modifier and Type | Class and Description |
---|---|
protected class |
StartProfiler.ProfilerTask |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_TYPE |
Constructor and Description |
---|
StartProfiler() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
long |
getActiveTime() |
int |
getDepth() |
long |
getSamplingRate() |
void |
init() |
java.lang.String |
jsonProfile() |
void |
setActiveTime(Period activeTime) |
void |
setActiveTimeMillis(long activeTime) |
void |
setDepth(int depth) |
void |
setSamplingRate(Period samplingRate) |
void |
setSamplingRateMillis(long samplingRate) |
void |
setWait(boolean isWait) |
void |
startProfile() |
void |
stop() |
add, addListener, doAction, getPredicates, start, toString
public static final java.lang.String LOG_TYPE
@PostConstruct public void init()
init
in class AbstractHealthAction
public long getActiveTime()
@Configurable public void setActiveTime(Period activeTime)
@Configurable public void setActiveTimeMillis(long activeTime)
public long getSamplingRate()
public void setWait(boolean isWait)
@Configurable public void setSamplingRate(Period samplingRate)
@Configurable public void setSamplingRateMillis(long samplingRate)
public int getDepth()
@Configurable public void setDepth(int depth)
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception
public void startProfile()
public void stop()
stop
in interface HealthAction
stop
in class AbstractHealthAction
public java.lang.String jsonProfile()