aspose file tools
The moose likes Threads and Synchronization and the fly likes How to get thread dump in windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "How to get thread dump in windows " Watch "How to get thread dump in windows " New topic
Author

How to get thread dump in windows

Manu Manoharan
Greenhorn

Joined: Jan 12, 2009
Posts: 9
Hi,
How can I get java thread dump for an application that started via java webstart. JDK used is 1.4
OS : Windows XP.

Thanks in advance for your help.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16811
    
  19

If you send a cntl-break to the application, it should cause it to dump the stack traces for every thread in the JVM.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Manu Manoharan
Greenhorn

Joined: Jan 12, 2009
Posts: 9
The application is started using jnlp. even if i press ctrl+break, it doesn't give thread dump. Could you please tell where will be the dump ? its not there in the java console.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16811
    
  19

I don't think you can. When I do this, it is done via a command prompt -- and cntrl-break goes there.

Henry
luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 86
if you have the java console display for your app, just press v on the java console for the app. you will see the thread stack trace on the java console.
Manu Manoharan
Greenhorn

Joined: Jan 12, 2009
Posts: 9
Thanks Luri,It works.
But how can we get the dump if there is a deadlock ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get thread dump in windows
 
Similar Threads
Getting thread dump from service running J app
how ro get a java thread dump of a application
ant waits for user input
need to take thread dump
Diffrence Between Notify & NotifyAll