Tag

ThreadMXBean

2 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Mar 31, 2025 · Operations

How to Capture Java Thread Dumps Using JDK Tools, OS Signals, and ThreadMXBean

This article explains what a Java thread dump is, describes multiple ways to generate it—including JDK command‑line tools like jstack and jcmd, OS signals such as kill ‑3, and programmatic access via ThreadMXBean—provides syntax, options, examples, and recommendations for choosing the appropriate method.

DiagnosticsJavaThread Dump
0 likes · 9 min read
How to Capture Java Thread Dumps Using JDK Tools, OS Signals, and ThreadMXBean
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2023 · Backend Development

How to Detect and Diagnose Java Deadlocks Using jstack, ThreadMXBean, and Online Tools

This article explains how to locate Java deadlocks by using command‑line tools such as jps and jstack, the ThreadMXBean API’s findDeadlockedThreads method, and online utilities like FastThread and JStack Review, while also offering guidance on preventing and fixing deadlocks in production.

JavaThreadMXBeanconcurrency
0 likes · 4 min read
How to Detect and Diagnose Java Deadlocks Using jstack, ThreadMXBean, and Online Tools