users
[Top] [All Lists]

Re: [cinjug-users] thread dump

To: "Arnett, Matt" <Matt.Arnett@xxxxxxxxxx>
Subject: Re: [cinjug-users] thread dump
From: Robert Fries <rgf@xxxxxxxxx>
Date: Thu, 14 Apr 2005 14:51:10 -0400
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
In-reply-to: <AB75441401112747806E7AC8A7E87D7F03039E70@c092ex02.na.cintas.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <AB75441401112747806E7AC8A7E87D7F03039E70@c092ex02.na.cintas.com>
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
If you are running Java 5, and any of your threads are responding, then
you can use Thread.getAllStackTraces() and dump it yourself.  You just
need a way to get an event to your thread.  If none of your threads
are responding, then the VM may be wedged and external events may not
be able to trigger a dump at all.

getAllStackTraces() is a new feature of Java 5, I don't really know of a
way to do the same thing in 1.4.2.

Robert Fries
Objective Synthesis


Arnett, Matt wrote:
Can anyone recommend a tool (preferably a free tool J) which can generate a thread dump from a Java process running as an NT Service?



A thread dump is a textual dump of all active threads and monitors of Java applications running in a Virtual Machine.



We have tried http://tmitevski.users.mcs2.netarray.com/stacktrace.jsp but it failed with a, hold your hats, “thread dump failed” error. Not a very useful error!

Thanks,
-Matt




This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.


<Prev in Thread] Current Thread [Next in Thread>