Thread Dump Analysis Pattern - Leprechaun Trap

Thread Dump is a snapshot of the status of all the threads at a particular time. Thread dumps are vital artefacts to diagnose CPU spikes, deadlocks, poor response times, memory problems, unresponsive applications, and other system problems. Thread Dump helps to find out what every thread in the JVM is doing at a particular point in time. A common phenomenon is once a high CPU usage is observed then thread dump analysis is required. 

In some previous posts, I have shared articles which described Athlete, Atherosclerosis, Treadmill, Traffic Jam, All Roads Lead to Rome, Repetitive Strain Injury (RSI), Stock Ticker, Additives and Several Scavengers Pattern. Today, you will see how Finalize Thread always searching for an object having finalize() method and a bad implementation of Finalize() method impacts the performance of the system. Such a pattern is named as Leprechaun Trap Pattern because all the finalize thread search for Finalize() just like Leprechaun searches of Gold. A simple and descriptive article published in the fastThread blog on this thread pattern along with the example. Refer the link. 👇 

👉Article Link

No comments:

Post a Comment