Search

Fast thread

Universal Java Thread Dump Analyzer

Month

July 2016

WHAT’S THE DIFFERENCE BETWEEN BLOCKED, WAITING, AND TIMED_WAITING? – EXPLAINED TO REAL-LIFE EXAMPLES

The article explains thread states in Java: BLOCKED, WAITING, and TIMED_WAITING, with relatable real-life examples for clarity. BLOCKED occurs when a thread waits for a monitor lock, whereas WAITING is when a thread waits indefinitely for an action. TIMED_WAITING is when a thread waits for a specified time. Understanding these states is crucial for analyzing thread dumps.

TROUBLESHOOT OUTOFMEMORYERROR: UNABLE TO CREATE NEW NATIVE THREAD

The "java.lang.OutOfMemoryError: unable to create new native thread" occurs when an application cannot create new threads due to memory constraints or exceeding operating system limits. Solutions include adjusting thread creation rates, increasing thread limits, allocating more memory, reducing heap space, minimizing processes, and managing thread stack size.

Up ↑