Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

45 min read

Deadlock, Livelock & CPU 100%: Java Concurrency Troubleshooting with jstack & Arthas

This guide covers systematic concurrency troubleshooting: diagnosing deadlocks via Coffman conditions and ThreadMXBean patrols, resolving CPU 100% spikes with a five-step jstack/Arthas workflow, distinguishing livelock from starvation, detecting thread leaks via heap dumps, and implementing monitoring templates for production readiness.

12 min read

Investigating and Resolving a Massive Thread Leak in a Java Backend Application

This article details the discovery, analysis, and fix of a severe thread‑leak issue in a Java Spring MVC service caused by unsafe use of a shared CloseableHttpAsyncClient, showing how multithreaded testing reproduced the problem and how refactoring the client to a local variable eliminated the runaway thread growth.

15 min read

Uncovering Hidden Android Thread Pitfalls: Memory Leaks, Monitoring, and Hook Solutions

This article explores obscure Android thread issues—including uncontrolled thread creation, stack memory leaks, and the impact of thread‑priority settings—while presenting monitoring techniques, a pthread hook implementation, and performance considerations to help developers detect and resolve thread‑related crashes.