|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.webvm.analyzer.ProblemAnalyzer
public final class ProblemAnalyzer
Analyzes VM problems.
| Field Summary | |
|---|---|
static String |
CLASS_DEADLOCKED_THREADS
The "Deadlocked threads" problem class. |
static String |
CLASS_FREE_DISK_SPACE
The "Free disk space" problem class. |
static String |
CLASS_GC_CPU_USAGE
The "GC CPU Usage" problem class. |
static String |
CLASS_GC_MEMORY_CLEANUP
The "GC Memory cleanup" problem class. |
static String |
CLASS_HOST_MEMORY_USAGE
The "Host Memory" problem class. |
static String |
CLASS_MEMORY_USAGE
The "Memory status" problem class. |
| Constructor Summary | |
|---|---|
ProblemAnalyzer()
|
|
| Method Summary | |
|---|---|
void |
configure(Config config)
Parses init values from given application. |
static long[] |
findDeadlockedThreads(ThreadMXBean bean)
Finds deadlocked threads. |
static ProblemReport |
getDeadlockReport()
Prepares the CLASS_DEADLOCKED_THREADS report. |
ProblemReport |
getFreeDiskspaceReport()
Analyzes free disk space. |
ProblemReport |
getGCCPUUsageReport(List<HistorySample> history)
Prepares the CLASS_GC_CPU_USAGE report. |
ProblemReport |
getGCMemUsageReport()
Prepares the CLASS_GC_MEMORY_CLEANUP report. |
ProblemReport |
getHostVirtMemReport()
Prepares the CLASS_HOST_MEMORY_USAGE report. |
ProblemReport |
getMemStatReport()
Prepares the #CLASS_MEMORY_STATUS report. |
List<ProblemReport> |
getProblems(List<HistorySample> history)
Diagnose the VM and returns a list of problem reports. |
static int |
parse(Properties props,
String propName,
int defaultValue)
Parses given property and returns it as an integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASS_FREE_DISK_SPACE
public static final String CLASS_DEADLOCKED_THREADS
public static final String CLASS_GC_CPU_USAGE
public static final String CLASS_GC_MEMORY_CLEANUP
public static final String CLASS_MEMORY_USAGE
public static final String CLASS_HOST_MEMORY_USAGE
| Constructor Detail |
|---|
public ProblemAnalyzer()
| Method Detail |
|---|
public static long[] findDeadlockedThreads(ThreadMXBean bean)
ThreadMXBean.findDeadlockedThreads() on 1.6, falls back to ThreadMXBean.findMonitorDeadlockedThreads() on 1.5.
bean - the thread mx bean
public void configure(Config config)
config -
public static int parse(Properties props,
String propName,
int defaultValue)
props - the propertiespropName - the property namedefaultValue - returned when given property is not specified.
public List<ProblemReport> getProblems(List<HistorySample> history)
history - current history.
public ProblemReport getHostVirtMemReport()
CLASS_HOST_MEMORY_USAGE report.
public ProblemReport getGCCPUUsageReport(List<HistorySample> history)
CLASS_GC_CPU_USAGE report.
history - the history
public ProblemReport getMemStatReport()
#CLASS_MEMORY_STATUS report.
public ProblemReport getGCMemUsageReport()
CLASS_GC_MEMORY_CLEANUP report.
public static ProblemReport getDeadlockReport()
CLASS_DEADLOCKED_THREADS report.
public ProblemReport getFreeDiskspaceReport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||