• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread dump - best practices  RSS feed

 
Allen Bandela
Ranch Hand
Posts: 128
Eclipse IDE MS IE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Our app. gets spikes in CPU , memory , and servlet. Do you know of any best practices for taking thread dumps. The spike occurs for a few minutes. By the time we get there, the app returns to normal operation.

thanks,
Sylvester
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no best practice as such for taking threaddumps (atleast i am not aware of).

But you could write a small script which takes the thread whenever the CPU spikes to more than 80%. Not sure if you have the unix or windows system.

In unix, just monitor the pid of the JVM and say "kill -quit pid" whenever the cpu spikes.

~Rajesh.B
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!