Infinite Looping code and jstack

Alan Bateman Alan.Bateman at Sun.COM
Fri Mar 28 04:42:39 PDT 2008


Scott Oaks wrote:
> I am on S10 (S10 U3), but I've never had much luck with pstack and busy
> java processes (and/or perhaps large -- the appserver has a few hundred
> threads and a 3GB heap) -- pstack itself seems to loop infinitely, or
> perhaps I'm just never patient enough...but after an hour or two, I
> still never have output.
>
> I'll try the gcore trick.
>   
or instead of gcore + jstack, try "jstack -F <pid>" (the -F option is 
used to "force" a thread dump by invoking SA).

-Alan.



More information about the hotspot-dev mailing list