Zombie thread
A thread that remains active without purposeful work after it is no longer needed.
Troubleshooting Java, Second Edition
A zombie thread is a thread that remains open and executes without purposeful work, potentially causing performance and memory problems.
- How it is used
- Uses profiler observations to investigate abnormal CPU, memory, battery, or responsiveness behavior in multithreaded applications.
- How deep it goes
- Defines the failure, demonstrates resource symptoms, and traces them to concurrency, stopping short of detailed thread-dump analysis.
- Examples
- Uses a Bluetooth library creating unclosed threads and a producer-consumer program sharing an unsynchronized ArrayList.
- What you can do after
- Diagnose with VisualVM by correlating CPU, memory, garbage collection, and thread status, then inspect suspicious threads with a thread dump.
Read how Troubleshooting Java, Second Edition explains zombie thread →
Troubleshooting Java: Read, debug, and optimize JVM applications
A thread that remains open and runs without purpose after it is no longer needed.
- How it is used
- Uses profiling to spot threads that remain alive and consume resources after concurrency failures.
- How deep it goes
- Defines zombie threads and demonstrates profiler-based observation of CPU use and live threads.
- Examples
- Demonstrates unsynchronized producer and consumer threads sharing an ArrayList, with exceptions stopping some threads.
- What you can do after
- Diagnose/debug suspected zombie threads by checking CPU use and live-thread status in VisualVM.
Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains zombie thread →
Related concepts
- threadkind of · A thread is a distinct sequence of execution with its own control flow and state, managed or scheduled by a processor, runtime, or operating system.
- performance issueproduces · A problem in an application’s use of resources or delivery of service, including but not limited to slow responses.
- race conditionproduced by · A race condition is a concurrency defect in which program behavior or results depend on the timing or ordering of interacting operations.
Questions about zombie thread
What is zombie thread?
A thread that remains active without purposeful work after it is no longer needed.
Which Manning books explain zombie thread?
Troubleshooting Java, Second Edition and Troubleshooting Java: Read, debug, and optimize JVM applications.
What is zombie thread a kind of?
Zombie thread is a kind of thread. A thread is a distinct sequence of execution with its own control flow and state, managed or scheduled by a processor, runtime, or operating system.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

