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.
|