Does anyone know how to create thread dumps from a java program? This program will call another program that creates some threads and attempt to do a thread dump except I'm not sure how to do it.
However it prints the current stack trace. Thus it should be called from the code you want to see the stack trace. [ May 23, 2004: Message edited by: Jose Botella ]
there is no way you can do that programmatically. In windows, activate console that Java app is running and hit Ctrl+Break. That will get Threads dumped to the screen. Very convienent for deadlock debugging.
Post by:autobot
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, that will fit in a stocking