Thanks everyone for their suggestions.
Unfortunately, that doesn't help me with my particular issue. I have a memory
leak in one of my apps, and when the system runs out of memory, it stops
responding to new requests. I have a script that will detect this condition and
automatically restart Tomcat. I was hoping to add a jstack command to this
script to give me a thread dump prior to restarting Tomcat to give me better
troubleshooting information. Your solution would work under normal
circumstances, but I don't know how to script a ctrl+break. ;-)
----- Original Message ----
From: Johnny Kewl <[EMAIL PROTECTED]>
If you need thread dumps....
Start TC from the BAT file.....
When you need a dump... press ctrl + break from term window... easier than
Jstack...