[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Command line option to do Thread-dump?  XML
Forum Index -> Terracotta Platform
Author Message
hb5fa

journeyman

Joined: 03/27/2009 13:33:53
Messages: 27
Offline

Does any one know if there is a command line option to do a Terracotta cluster thread dump? We are experiencing some strange Tomcat failures. We want to be able to do a cluster thread dump when Tomcat fails again. Having to do this in the developer console is just not good enough.

Thanks!
zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

kill -3 <java-pid>

Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1099
Offline

I could be wrong, but think the poster might have been asking how to trigger a cluster wide thread dump from the command line (ie. enact the same thing that the dev console can do but from the command line).

Our dev-console just makes JMX calls to the terracotta server so in theory this possible. I don't know that there is a script that already does it.

If you poke around with jconsole (part of the JDK) against a Terracotta server running in 1.6 JDK you should be able to find the bean and the operation without too much trouble. Then you need to find a program that can make remote jmx calls on the command line or whip one up.

hope this helps

Tim Eck (terracotta engineer)
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team