Tagged articles
37 articles
Page 1 of 1
Tech Freedom Circle
Tech Freedom Circle
Jul 8, 2025 · Backend Development

How to Diagnose and Prevent Java Deadlocks (Alibaba & Other Big‑Company Interviews)

This article explains what a deadlock is, the four necessary conditions that cause it, demonstrates classic synchronized‑based and Lock‑based deadlock examples in Java, shows how to detect deadlocks with tools such as Arthas, jstack, jvisualvm and JMC, and provides practical strategies—including lock ordering, timeout locks, and two‑phase locking—to break each condition and avoid deadlocks in production code.

ArthasJavaLock
0 likes · 24 min read
How to Diagnose and Prevent Java Deadlocks (Alibaba & Other Big‑Company Interviews)
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.

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

JavaThreadconcurrency
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.

Shellflamegraphjstack
0 likes · 9 min read
Understanding Flame Graphs for Java Performance Analysis
Code Ape Tech Column
Code Ape Tech Column
Jun 20, 2021 · Backend Development

Master JVM Performance: Essential Tools and Real‑World Debugging Guide

This article introduces core JVM performance and monitoring utilities—including jps, jstack, jmap, jhat, jstat, and hprof—explains their command syntax, demonstrates practical steps to locate high‑CPU threads, analyze heap dumps, and interpret GC statistics, and provides concrete code examples for Java developers.

JVMJavajmap
0 likes · 13 min read
Master JVM Performance: Essential Tools and Real‑World Debugging Guide
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.

DebuggingJavaThread Dump
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.

Operationsflamegraphjstack
0 likes · 11 min read
Understanding Flame Graphs for Performance Analysis in Java Applications
Java Backend Technology
Java Backend Technology
Oct 27, 2020 · Backend Development

Master JVM Performance: Essential Tools and Real-World Usage Guide

This article explains common JVM problems such as OutOfMemoryError, memory leaks, and thread deadlocks, then introduces core monitoring tools—jps, jstack, jmap/jhat, jstat, and hprof—detailing their syntax, options, and practical examples to help Java developers diagnose and tune production applications.

HprofJVMjmap
0 likes · 15 min read
Master JVM Performance: Essential Tools and Real-World Usage Guide
Liangxu Linux
Liangxu Linux
May 25, 2020 · Operations

Diagnosing Java Runtime Problems: CPU, Memory, Disk, and Network Tips

This guide walks through systematic troubleshooting of Java runtime issues—including CPU spikes, frequent garbage collection, memory leaks, disk bottlenecks, and network anomalies—by using Linux tools such as top, jstack, jstat, iostat, vmstat, and netstat, with concrete command examples and analysis steps.

Javagcjstack
0 likes · 18 min read
Diagnosing Java Runtime Problems: CPU, Memory, Disk, and Network Tips
Programmer DD
Programmer DD
Mar 29, 2020 · Fundamentals

Mastering Java Thread Lifecycle: States, Transitions, and Debugging Tips

This article explains Java thread lifecycle, compares OS generic thread states with Java’s six states, shows how to query thread state via getState(), and introduces debugging tools like jstack and Arthas, helping developers master state transitions and write robust concurrent code.

ArthasDebuggingJava
0 likes · 12 min read
Mastering Java Thread Lifecycle: States, Transitions, and Debugging Tips
Senior Brother's Insights
Senior Brother's Insights
Nov 10, 2019 · Backend Development

Master JVM Performance: Using jps, jstack, jmap, jstat & hprof

This guide introduces essential JVM performance monitoring tools—including jps, jstack, jmap, jhat, jstat, and hprof—explains their command syntax, demonstrates step‑by‑step usage with real‑world examples, and shows how to interpret their output to diagnose memory leaks, thread issues, GC behavior, and CPU hotspots.

HprofJVMPerformance Monitoring
0 likes · 14 min read
Master JVM Performance: Using jps, jstack, jmap, jstat & hprof
Programmer DD
Programmer DD
Nov 4, 2019 · Operations

Master JVM Performance: Essential Tools and Real‑World Tuning Guide

This article introduces the most common JVM performance problems in enterprise Java applications and provides a practical guide to using core monitoring and tuning tools such as jps, jstack, jmap, jstat and hprof, complete with command syntax, sample outputs and step‑by‑step troubleshooting examples.

JVMJavaMonitoring Tools
0 likes · 13 min read
Master JVM Performance: Essential Tools and Real‑World Tuning Guide
Programmer DD
Programmer DD
Jul 18, 2019 · Backend Development

How to Detect and Resolve Java Deadlocks and 100% CPU Issues: A Step‑by‑Step Guide

This article walks Java developers through diagnosing and fixing common problems such as deadlocks and CPU usage spikes, explaining the underlying concepts, showing practical code examples, and demonstrating how to use tools like jps, jstack, JConsole, JVisualVM, and Arthas to pinpoint and prevent performance bottlenecks.

ArthasCPUJVisualVM
0 likes · 10 min read
How to Detect and Resolve Java Deadlocks and 100% CPU Issues: A Step‑by‑Step Guide
Java Backend Technology
Java Backend Technology
Oct 24, 2018 · Backend Development

Why My Java App Hits 100% CPU: Live Infinite Loop Demo & Diagnosis

This article walks through setting up a Vagrant‑based experiment that injects an intentional infinite loop into a simple Spring MVC service, then demonstrates step‑by‑step how to identify the offending process using top, examine JVM heap with jstat, and trace the problematic thread with jstack to resolve a CPU‑100% issue.

CPUJVMJava
0 likes · 4 min read
Why My Java App Hits 100% CPU: Live Infinite Loop Demo & Diagnosis
ITPUB
ITPUB
Apr 23, 2018 · Operations

Diagnosing Linux CPU Spikes with top, Thread Dumps, and jstack

This guide walks through real‑world Linux performance troubleshooting, showing how to use top to pinpoint high‑CPU processes, convert thread IDs, capture multiple jstack thread dumps, and interpret key top metrics such as load average, task states, and memory usage.

jstackmonitoringthread-dump
0 likes · 7 min read
Diagnosing Linux CPU Spikes with top, Thread Dumps, and jstack
MaGe Linux Operations
MaGe Linux Operations
Oct 27, 2016 · Backend Development

Master JVM Performance: Essential Tools (jps, jstack, jmap, jstat, hprof)

Learn how to diagnose and resolve common Java performance issues such as OutOfMemoryError, thread deadlocks, and high CPU usage by using built‑in JVM tools—including jps, jstack, jmap, jhat, jstat, and hprof—through detailed command examples, output explanations, and practical profiling techniques.

JVMJavaMonitoring Tools
0 likes · 11 min read
Master JVM Performance: Essential Tools (jps, jstack, jmap, jstat, hprof)