Tag

jstack

0 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 16, 2025 · Backend Development

Diagnosing High CPU Usage in a Java Application with top and jstack

This guide explains how to locate the cause of sudden CPU spikes in a Java program by using the top command to identify the offending process and thread, converting the thread ID to hexadecimal, and analyzing stack traces with jstack to pinpoint the problematic code line.

CPU ProfilingJavaPerformance Debugging
0 likes · 4 min read
Diagnosing High CPU Usage in a Java Application with top and jstack
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
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 21, 2023 · Operations

How to Diagnose High CPU Usage in a Java Program (Three‑Step Guide)

This article explains a three‑step method—using top to locate the CPU‑hungry Java process, identifying the offending thread, and printing its stack with jstack—to pinpoint and resolve excessive CPU consumption in a Java application running on Linux.

JavaLinuxPerformance
0 likes · 4 min read
How to Diagnose High CPU Usage in a Java Program (Three‑Step Guide)
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 9, 2023 · Backend Development

Master JDK Command-Line Tools for Java Troubleshooting

This guide explains how to use JDK command-line utilities such as jps, jstat, jinfo, jmap, jhat, and jstack to monitor JVM processes, inspect memory usage, generate heap dumps, and diagnose performance issues, providing command syntax, options, and practical examples.

JDKJavaTroubleshooting
0 likes · 8 min read
Master JDK Command-Line Tools for Java Troubleshooting
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.

ConcurrencyJavaThreadMXBean
0 likes · 4 min read
How to Detect and Diagnose Java Deadlocks Using jstack, ThreadMXBean, and Online Tools
Top Architect
Top Architect
Sep 29, 2022 · Backend Development

JVM Performance Tuning: Diagnosing High CPU Usage, Deadlocks, and Memory Leaks

This article explains practical JVM tuning scenarios—including how to identify and resolve excessive CPU consumption, thread deadlocks, and memory leaks—by using Linux tools such as top, jstack, jps, jstat, and jmap, and by analyzing heap dumps with Eclipse MAT.

JVMJavaMemory Leak
0 likes · 15 min read
JVM Performance Tuning: Diagnosing High CPU Usage, Deadlocks, and Memory Leaks
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2022 · Fundamentals

Java Thread States and How to Query Them

This article explains Java’s six thread states—NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED—provides detailed descriptions, shows how to inspect thread states using jstack and online tools, and includes example thread dumps for practical analysis.

ConcurrencyJavaThread States
0 likes · 6 min read
Java Thread States and How to Query Them
Code Ape Tech Column
Code Ape Tech Column
Nov 30, 2021 · Operations

Understanding Flame Graphs for Java Performance Analysis

This article introduces flame graphs, explains their visual characteristics and how they help identify performance bottlenecks in Java applications, and provides practical guidance on generating them using Perl scripts and shell commands to process jstack and perf outputs.

JavaPerformance ProfilingPerl
0 likes · 9 min read
Understanding Flame Graphs for Java Performance Analysis
Top Architect
Top Architect
Jun 13, 2021 · Operations

Troubleshooting a JVM Memory Leak and Network Timeout Issue in a Monitoring Service

The article recounts a weekend on‑call incident where a Java monitoring service suffered network packet loss and a severe memory leak, leading to massive timeouts, high CPU usage, and frequent GC, and explains how the problem was diagnosed and resolved using tools such as top, jstat, jstack, jmap, and MAT.

JVMJavaMemory Leak
0 likes · 9 min read
Troubleshooting a JVM Memory Leak and Network Timeout Issue in a Monitoring Service
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 21, 2021 · Backend Development

Understanding jps and jstack: A Guide to Java Process Inspection and Thread Dump Analysis

This article introduces the jps tool for listing Java processes, explains its common options and usage examples, then provides a detailed overview of jstack, including its purpose, command syntax, thread‑state definitions, sample outputs, and practical tips for detecting deadlocks, counting threads, and diagnosing high CPU usage in Java applications.

JavaThread Dumpbackend
0 likes · 7 min read
Understanding jps and jstack: A Guide to Java Process Inspection and Thread Dump Analysis
Top Architect
Top Architect
Apr 27, 2021 · Operations

Understanding Flame Graphs for Performance Analysis in Java Applications

This article explains the concept, features, and practical usage of flame graphs—including how to generate them from Java thread dumps with Perl scripts—to help developers visualize call‑stack frequencies and quickly identify performance bottlenecks in backend services.

JavaOperationsPerformance Profiling
0 likes · 11 min read
Understanding Flame Graphs for Performance Analysis in Java Applications
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jul 12, 2018 · Operations

How to Quickly Identify and Fix High CPU Usage in Java Services

This guide walks you through a step‑by‑step process using Linux top, jstack, and hex conversion to pinpoint the exact Java thread causing CPU spikes, enabling effective service optimization and cost reduction without unnecessary scaling.

CPU troubleshootingJava performanceLinux top
0 likes · 5 min read
How to Quickly Identify and Fix High CPU Usage in Java Services
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 8, 2016 · Backend Development

Quickly Diagnose High CPU Usage in Java/Tomcat with jstack and Jstat

This article explains how to identify and resolve intermittent high CPU usage in Java/Tomcat services by analyzing thread stacks with jstack, examining GC behavior with Jstat, and using Jmap for memory inspection, providing step‑by‑step commands and practical tips for ops engineers.

JavaTomcatcpu
0 likes · 7 min read
Quickly Diagnose High CPU Usage in Java/Tomcat with jstack and Jstat