Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Stack Dump of ALL threads

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't listen to Steve. Just read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic