Few problems might happen only on test or production servers. It may not be reproducible in your local machine. Continue reading “Remote Debugging Java Applications”
How to troubleshoot sudden CPU spikes?
Your Java application has been running fine, but all of a sudden CPU consumption starts to go higher and higher until it stays at 80 – 100%. Even if you remove Continue reading “How to troubleshoot sudden CPU spikes?”
How to take thread dumps? – 7 options
Thread dumps are vital artifacts to diagnose CPU spikes, deadlocks, memory problems, unresponsive applications, poor response times and other system problems. Continue reading “How to take thread dumps? – 7 options”
Which GC to use?
There are several blogs, articles on different GC algorithms, their inner details, their Pros, their Cons….. This article tries to summarizes Pros and Cons Continue reading “Which GC to use?”
JBoss Shunning, Unloading class sun.reflect
I had this interesting problem with a major shipping/logistics company. Their application was running on Java 6, JBoss Cluster in RedHat Linux platform. Continue reading “JBoss Shunning, Unloading class sun.reflect”
JVM Internals in 3 slides
Learn about JVM Internals in just 3 crisp slides. Deck talks about JVM Architecture, it’s memory model and Garbage Collection process Continue reading “JVM Internals in 3 slides”
Why JVM will outlive java?
Here is my case to prove that JVM will outlive Java. As an Engineer what you can do to capitalize on this opportunity? Continue reading “Why JVM will outlive java?”
HP Jmeter – GC Analysis Tool
HP Jmeter is a powerful tool to do Garbage Collection Analysis. Even though there are few Garbage collection analysis tool Continue reading “HP Jmeter – GC Analysis Tool”
CPU maxes out and utilization never goes down?
Continue reading “CPU maxes out and utilization never goes down?”This is an old, outdated article. We have devised a better and simpler strategy to troubleshoot CPU spikes in this article.
How to capture heap dump? – jmap, -XX:+HeapDumpOnOutOfMemoryError
Heap dump is a snapshot of the Java memory. It contains information about the Java objects and classes in the heap at the moment Continue reading “How to capture heap dump? – jmap, -XX:+HeapDumpOnOutOfMemoryError”
Yes, you can catch Memory Leaks during test
Memory leaks are dangerous problems which puts entire application’s availability in to question mark. Most of the time Continue reading “Yes, you can catch Memory Leaks during test”
Thread Dump Analysis Pattern – THREAD MILL
Description
You might have experienced the application’s CPU to spike up suddenly & spike wouldn’t go down until JVM is recycled. Continue reading “Thread Dump Analysis Pattern – THREAD MILL”
Thread Dump Analysis Pattern – Traffic Jam
Description
Thread-A could have acquired the lock-1 and then would never release it. Thread-B could have acquired lock-2 Continue reading “Thread Dump Analysis Pattern – Traffic Jam”
THREAD DUMP ANALYSIS PATTERN – Several Scavengers
Description
Based on the type of GC algorithm (Serial, parallel, G1, CMS) used, default number of garbage collection threads Continue reading “THREAD DUMP ANALYSIS PATTERN – Several Scavengers”
Circular Deadlock
Description
Dinning Philosophers is a classic computer science problem that happens in concurrent programming. Continue reading “Circular Deadlock”
Deadlock
Description
Wikipedia aptly defines deadlock is a situation in which two or more competing actions are each waiting Continue reading “Deadlock”
THREAD DUMP ANALYSIS PATTERN – LEPRECHAUN TRAP
Description
Unlike other objects, GC process will not immediately garbage collect the objects which has finalize method implemented Continue reading “THREAD DUMP ANALYSIS PATTERN – LEPRECHAUN TRAP”
THREAD DUMP ANALYSIS PATTERN – ADDITIVES
Description
It’s highly recommended to capture 3 threads dumps in an interval of 10 seconds to uncover any problem in the JVM. Continue reading “THREAD DUMP ANALYSIS PATTERN – ADDITIVES”
THREAD DUMP ANALYSIS PATTERN – REPETITIVE STRAIN INJURY (RSI)
Description
Whenever significant number of threads exhibit same/repetitive stack trace then those stack trace has to be investigated. Continue reading “THREAD DUMP ANALYSIS PATTERN – REPETITIVE STRAIN INJURY (RSI)”
THREAD DUMP ANALYSIS PATTERN – ALL ROADS LEAD TO ROME
Description
If several threads in a thread dump ends up working on one single method, then it might be of concern. Most of the times Continue reading “THREAD DUMP ANALYSIS PATTERN – ALL ROADS LEAD TO ROME”