java.lang.Object
org.elasticsearch.monitor.jvm.HotThreads
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusiestThreads(int busiestThreads) voidignoreIdleThreads(boolean ignoreIdleThreads) static voidstatic voidlogLocalHotThreads(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level, String prefix, ReferenceDocs referenceDocs) Capture and log the hot threads on the local node.sortOrder(HotThreads.SortOrder order) threadElementsSnapshotCount(int threadElementsSnapshotCount) type(HotThreads.ReportType type)
-
Constructor Details
-
HotThreads
public HotThreads()
-
-
Method Details
-
logLocalHotThreads
public static void logLocalHotThreads(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level, String prefix, ReferenceDocs referenceDocs) Capture and log the hot threads on the local node. Useful for capturing stack traces for unexpectedly-slow operations in production. The resulting log message may be large, and contains significant whitespace, so it is compressed and base64-encoded usingChunkedLoggingStream.- Parameters:
logger- The logger to use for the logginglevel- The log level to use for the logging.prefix- The prefix to emit on each chunk of the logging.referenceDocs- A link to the docs describing how to decode the logging.
-
interval
-
busiestThreads
-
ignoreIdleThreads
-
threadElementsSnapshotCount
-
type
-
sortOrder
-
detect
- Throws:
Exception
-
initializeRuntimeMonitoring
public static void initializeRuntimeMonitoring()
-