ProLesson 13.4Intermediate4 min readUpdated 31 October 2026
High-Throughput Engineering: Thread Dumps, Flame Graphs & Bottleneck Hunting
Diagnose production microservice bottlenecks using thread dumps, flame graphs, async-profiler, and CPU/memory profiling techniques.
When a microservice is under load and latency suddenly surges from 25ms to 12,000ms, logging into the server and guessing is not an engineering strategy.
You need a systematic, evidence-driven profiling methodology to locate the exact bottleneck within minutes.
01The Bottleneck Anatomy: Where Latency Hides
Every slow request passes through multiple potential bottlenecks:
- Network / Ingress: TLS handshake latency or socket backlog queue full.
- Tomcat Worker Pool: All 200 threads stuck in
BLOCKEDorWAITINGstate. - Downstream Network I/O: Waiting on slow external HTTP or gRPC responses without timeouts.
- Database Connection Pool: All HikariCP connections checked out; threads waiting in pool queue.
- Database Engine: Table lock contention, missing indexes, or unoptimized joins.
Loading the rest of the lesson…