Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get thread dump in windows  RSS feed

 
Manu Manoharan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22818
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Manu Manoharan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22818
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Luri,It works.
But how can we get the dump if there is a deadlock ?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!