Forums Register Login

Stack Dump of ALL threads

+Pie Number of slices to send: Send
Hi,

In JDK 1.4, how can I get the stack dump of ALL the threads in JVM.

I tried using "ctrl + Break". It was giving thread dumps of 2-3 threads. But we need it for ALL the threads - preferably programmatically.

As our application is running on JDK 1.4, I cannot use J2SE 5's Thread.getAllStackTraces()

Thanks
+Pie Number of slices to send: Send
I don't think there is any good way to do this in JDK 1.4 using the standard libraries. Your best bet is probably to use a debugger, included in most good IDEs. I know you can do this in IntelliJ's debugger, though you need at least one of the threads to hit a break point so you can look at what's going on. It's probably possible in other popular IDEs like Eclipse and Netbeans. Or if you're feeling adventurous you could gfigure out how to use the Java Platform Debugger Architecture more directly yourself.
It runs on an internal combustion engine. This ad does not:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 800 times.
Similar Threads
New to threading. Help me analyze this excerpt from the dump
Stack Dumps of ALL threads
Stack Dumps of ALL threads
Print stack trace from any Thread instance?
How to make Thread dump in OAS
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:36:22.