• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stack Dump of ALL threads  RSS feed

 
Arnav Velimala
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!