Tag

CPU Profiling

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
Apr 2, 2025 · Operations

Understanding and Analyzing Java Thread Dumps for Performance Troubleshooting

Thread dumps provide a snapshot of all active JVM threads, including their state, stack trace, and metadata, enabling developers to diagnose performance issues such as slow responses, high CPU usage, deadlocks, and thread pool inefficiencies by examining key fields and applying practical analysis techniques.

CPU ProfilingJVMJava performance
0 likes · 12 min read
Understanding and Analyzing Java Thread Dumps for Performance Troubleshooting
Efficient Ops
Efficient Ops
Sep 17, 2024 · Operations

Master Linux Performance: CPU, Memory, IO, and Flame Graphs for Nginx Troubleshooting

This guide explains how to diagnose Linux performance bottlenecks—CPU, memory, disk I/O, network, and system load—using tools such as top, vmstat, perf, and flame graphs, and demonstrates a real‑world Nginx case study to pinpoint high‑CPU JSON parsing and upstream latency issues.

CPU ProfilingFlame GraphsPerformance analysis
0 likes · 20 min read
Master Linux Performance: CPU, Memory, IO, and Flame Graphs for Nginx Troubleshooting
Architecture Digest
Architecture Digest
Dec 4, 2023 · Operations

Using Arthas to Diagnose High CPU Usage in a Java Application

This tutorial demonstrates how to employ the open‑source Java diagnostic tool Arthas to quickly locate and analyze a high‑CPU problem in a running JVM by leveraging commands such as dashboard, thread, jad, watch, and ognl, complete with code examples and step‑by‑step instructions.

ArthasCPU ProfilingJava
0 likes · 7 min read
Using Arthas to Diagnose High CPU Usage in a Java Application
37 Interactive Technology Team
37 Interactive Technology Team
Jul 26, 2023 · Backend Development

Investigation and Resolution of CPU Spike in a Kafka-Go Consumer Using pprof

Using Go’s pprof, the team traced a gradual CPU spike in a high‑throughput kafka‑go consumer to a saturated commit queue and repeatedly nested context values, which forced costly lookups; eliminating the unnecessary trace‑id context injection (or recreating a fresh context each loop) resolved the issue and reduced CPU usage to under 2 %.

CPU ProfilingConsumerContext
0 likes · 10 min read
Investigation and Resolution of CPU Spike in a Kafka-Go Consumer Using pprof
Refining Core Development Skills
Refining Core Development Skills
May 30, 2023 · Fundamentals

Using Flame Graphs for CPU Performance Analysis with perf

This article explains how to generate and interpret flame graphs for CPU performance profiling on Linux, covering the use of perf for sampling, the underlying kernel mechanisms, and the processing steps with Brendan Gregg's FlameGraph scripts to visualize hot functions.

CPU ProfilingPerformance analysisperf
0 likes · 10 min read
Using Flame Graphs for CPU Performance Analysis with perf
360 Quality & Efficiency
360 Quality & Efficiency
May 12, 2023 · Operations

Client Application Performance Testing: Using Process Explorer and Windows Performance Toolkit

This article explains how to verify and measure micro‑level CPU usage in client applications by selecting appropriate performance‑testing tools, demonstrating two validation methods—Process Explorer and the Windows Performance Toolkit (WPT)—and providing step‑by‑step installation and usage guidance.

CPU Profilingperformance testingprocess-explorer
0 likes · 8 min read
Client Application Performance Testing: Using Process Explorer and Windows Performance Toolkit
FunTester
FunTester
Dec 14, 2022 · Backend Development

Using async-profiler to Optimize CPU Usage in a Dynamic QPS Test Case

The article details how the author used async-profiler to analyze a Java dynamic QPS test case, identified a CPU hotspot in a time‑checking method, replaced it with a timestamp check, and achieved a modest 0.1% reduction in overall CPU usage, illustrated with flame‑graph images and code snippets.

CPU ProfilingFlame GraphJava performance
0 likes · 12 min read
Using async-profiler to Optimize CPU Usage in a Dynamic QPS Test Case
Code Ape Tech Column
Code Ape Tech Column
Mar 23, 2022 · Operations

Using Arthas to Diagnose High CPU Usage in Java Applications

This tutorial demonstrates how to download, attach, and use the Arthas Java diagnostic tool—leveraging commands like dashboard, thread, jad, watch, and ognl—to quickly locate and fix high CPU problems caused by parallel stream code in a Java application.

ArthasCPU ProfilingDiagnostics
0 likes · 7 min read
Using Arthas to Diagnose High CPU Usage in Java Applications
Efficient Ops
Efficient Ops
Jul 7, 2020 · Operations

Mastering Linux Performance: From CPU to Flame Graphs

This article presents a comprehensive guide to Linux performance analysis, covering background, methodology, tools, and step‑by‑step case studies for CPU, memory, disk I/O, network, system load, and flame‑graph techniques to quickly locate and resolve bottlenecks.

CPU ProfilingFlame GraphLinux
0 likes · 19 min read
Mastering Linux Performance: From CPU to Flame Graphs
Youzan Coder
Youzan Coder
May 28, 2020 · Backend Development

Diagnosing High CPU Usage in Java Applications with Arthas

Using the open‑source Arthas tool, the author traced a Java server’s 99 % CPU usage to two runaway threads, inspected their stack traces, discovered a cyclic bucket in a HashBiMap caused by unsynchronized cache updates, and resolved the issue by adding a synchronized keyword to the cache‑sync method.

ArthasCPU ProfilingJava
0 likes · 10 min read
Diagnosing High CPU Usage in Java Applications with Arthas
Efficient Ops
Efficient Ops
Dec 29, 2019 · Operations

Master Linux Performance: Tools & Flame Graphs for Fast Issue Diagnosis

This article presents a comprehensive guide to Linux performance analysis, covering CPU, memory, disk I/O, network, system load, flame‑graph techniques, and a real‑world Nginx case study, enabling engineers to quickly locate and resolve bottlenecks.

CPU ProfilingFlame GraphsLinux
0 likes · 19 min read
Master Linux Performance: Tools & Flame Graphs for Fast Issue Diagnosis
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 28, 2018 · Fundamentals

Common CPU Performance Pitfalls in C/C++ Programs and Their Diagnosis

The article examines common CPU performance pitfalls in C/C++ programs—such as excessive memset, inefficient string copying, improper container usage, lock contention, and heavy I/O logging—provides concrete code examples, compares profiling tools, and recommends best practices to reduce CPU consumption.

C++CPU ProfilingLocks
0 likes · 14 min read
Common CPU Performance Pitfalls in C/C++ Programs and Their Diagnosis