Java – JStack

Java – JStack

When reviewing \ debugging a Java Application, one can try using “JStack”.

JStack principally displays the StackTrace for each thread in an Application.

Listed below are a few well written coverage of this important tool.
1) Fun with JStack
http://weblogs.java.net/blog/sdo/archive/2009/10/16/fun-jstack
2) How to take Thread Dumps from a JVM
http://dev.day.com/content/kb/home/cq5/CQ5SystemAdministration/TakeThreadDump.html
3) JStack / Oracle
http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstack.html
4) Building a JStack Profiler
http://codingbone.wordpress.com/2010/05/25/building-a-jstack-parser/
5) What are good Java Profiling Tools
http://qnatech.wordpress.com/2009/09/17/what-are-good-java-profiling-tools/

Couple of areas to keep in mind:

  1. On a Windows box running a 64-bit OS, you will not be able to “connect” to a 32-bit App running under WOW64.

    If you try to, you will get an error message similar to “Unable to attach to 32-bit process running under WOW64” 

2 thoughts on “Java – JStack

  1. Hey i am actually trying to use the ATTACH API and am getting the error “unable to attach to 32-bit process running under wow64”. Is there a work-around for this?

    • Sorry I did not do any more research on a 64-bit.

      It is a big to do for me — But, lately more work on Linux systems.

      Thanks for posting.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s