How will you take thread dump in Java? How will you analyze Thread dump?

Ans: A Thread Dump is a complete list of active threads. A java thread dump is a way of finding out what each thread in the JVM is doing at a particular point of time. This is especially useful when your java application seems to have some performance issues. Thread dump will help you to find out which thread is causing this. There are several ways to take thread dumps from a JVM. It is highly recommended to take more than 1 thread dump and analyze the results based on it. Follow below steps to take thread dump of a java process

•Step 1

On UNIX, Linux and Mac OSX Environment run below command:

ps -el | grep java

On Windows:

Press Ctrl+Shift+Esc to open the task manager and find the PID of the java process

•Step 2:

Use jstack command to print the Java stack traces for a given Java process PID

jstack [PID]


People who read this post also read :



7 comments:

Specialized Packing Tips and Hints for Home Relocating by Packers and Movers Pune
.
packers and movers pune
Welcome to here, a premium online tool helping consumers relocate from one place to another with household belongings or commercial commodities. We have made it easy to find right services, right moving companies and other related information in different major cities and towns of India packers and movers in pune.To make your relocation successful you must avoid all common mistakes which can turn out to be blunders in your relocation. so next time while preparing for a move just make sure that you are not committing any of these above mentioned mistakes. movers and packers pune

movers and packers in pune

http://fastthread.io/ tool is a self explanatory tool for analyzing java thread dumps

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.




SEO Training in Chennai

Oh, I had no idea it worked this way, good to know! By the way, what do you reckon about getting microsoft dynamics ax as my company's erp software? Is it really worth the price?

ERP is an all time business management software.

Cloud Inventory Software

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More