public class DiagnosticsRecorder
extends java.lang.Object
implements akka.actor.Extension
It will register a MBean in the "akka" name space, which can be accessed from a JMX console such as JConsole. From JMX you can trigger thread dumps that will also be appended to the file.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DiagnosticsRecorder.DiagnosticsRecorderMBean
The MBean interface of the Diagnostics Recorder
|
class |
DiagnosticsRecorder.DiagnosticsRecorderMBeanImpl
INTERNAL API
|
| Constructor and Description |
|---|
DiagnosticsRecorder(akka.actor.ExtendedActorSystem system) |
| Modifier and Type | Method and Description |
|---|---|
com.typesafe.config.Config |
applicationConfig(com.typesafe.config.Config config,
com.typesafe.config.Config reference)
Extract the application specific configuration, i.e.
|
static T |
apply(akka.actor.ActorSystem system) |
static DiagnosticsRecorder |
createExtension(akka.actor.ExtendedActorSystem system) |
java.lang.String |
dumpThreads() |
static boolean |
equals(java.lang.Object other) |
java.lang.String |
gatherStartupInfo() |
static DiagnosticsRecorder |
get(akka.actor.ActorSystem system) |
static int |
hashCode() |
static DiagnosticsRecorder$ |
lookup() |
javax.management.ObjectName |
mbeanName() |
java.lang.String |
reportFileName() |
void |
runCollectThreadDumps(int count)
Collect a number of thread dumps with configured interval.
|
void |
runStartupReport()
Collect configuration and some system metrics, such as heap settings
and write to the diagnostics report file.
|
public DiagnosticsRecorder(akka.actor.ExtendedActorSystem system)
public static DiagnosticsRecorder get(akka.actor.ActorSystem system)
public static DiagnosticsRecorder$ lookup()
public static DiagnosticsRecorder createExtension(akka.actor.ExtendedActorSystem system)
public static T apply(akka.actor.ActorSystem system)
public static final int hashCode()
public static final boolean equals(java.lang.Object other)
public java.lang.String reportFileName()
public javax.management.ObjectName mbeanName()
public void runStartupReport()
public java.lang.String gatherStartupInfo()
public com.typesafe.config.Config applicationConfig(com.typesafe.config.Config config,
com.typesafe.config.Config reference)
config - (undocumented)reference - (undocumented)public void runCollectThreadDumps(int count)
count - (undocumented)public java.lang.String dumpThreads()