[PLUG] how to obtain a java vm stack dump

drew wymore drew.wymore at gmail.com
Thu Apr 26 03:29:50 UTC 2007


On 4/25/07, tkubaska at charter.net <tkubaska at charter.net> wrote:
>
> I have a simple question . and yes, I've googled and tried some things,
> but I dont have enough experience to evaluate whether I'm doing the right
> stuff and would appreciate some guidance. I want to obtain a java vm stack
> dump.
>
> Here's what I tried . is this the right thing to do?
> jstack -m 5037
> where 5037 is the pid of my java program.
>
> I'm running on Suse 10.2 and -m and -h seem to be the only jstack options
> that man jstack gives me; but docs on Internet list many other convenient
> options.  My java is Sun's 1.5.0.0_011 JDK.
>
> My java program hangs and I'm trying to find out why. Interesting that it
> does not hang on other Linux distros using the same JDK.
>
> Thanks.
> -ted
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>


you could run "strace $yourapp" which will give you a full stack trace. You
might also try stepping through with gdb(?)



More information about the PLUG mailing list