Interview Questions

Have you ever generated thread dumps or analyzed Thread Dumps?

Java Interview Questions and Answers (part 4)


(Continued from previous question...)

21. Have you ever generated thread dumps or analyzed Thread Dumps?

Answering this questions will show your in depth knowledge of Threads. Every experienced must know how to generate Thread Dumps

VisualVM is most popular way to generate Thread Dump and is most widely used by developers. It’s important to understand usage of VisualVM for in depth knowledge of VisualVM. I’ll recommend every developer must understand this topic to become master in multi threading.
It helps us in analyzing threads performance, thread states, CPU consumed by threads, garbage collection and much more. For detailed information see Generating and analyzing Thread Dumps using VisualVM - step by step detail to setup VisualVM with screenshots

jstack is very easy way to generate Thread dump and is widely used by developers. I’ll recommend every developer must understand this topic to become master in multi threading. For creating Thread dumps we need not to download any jar or any extra software. For detailed information see Generating and analyzing Thread Dumps using JSATCK - step by step detail to setup JSTACK with screenshots.

(Continued on next question...)

Other Interview Questions