users@glassfish.java.net

Re: How to troubleshoot hangs / thread dump?

From: Jean-Francois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 05 Dec 2005 09:25:31 -0800

Hi Miguel,

Miguel A Paraz wrote On 12/02/05 23:25,:
> Hi,
> The reason for my previous email was - I wanted to upgrade to b29 to
> find out why b24 hangs. It's running fine with one app + one
> pool/resource.
>
> I am now trying to deploy Roller 2.1 - to try out compatibility with
> Glassfish since it's no longer using container-managed authentication.
> On deploying roller.war, asadmin deploy hangs. server.log no longer
> moves. Nothing abnormal with the java process.
>
> Could I 'kill -STOP' the java pid? Where will the thread dump go?

If you can use JDK 1.5 (or 1.6 is better), do a:

% $JAVA_HOME/bin/jstack PID

1.6 is better because it will also enable the dead lock detection
algorithm, so the dead lock might be printed on the console.

If you are using win32, start AS using:

asadmin start-domain --verbose

A black window will appears. Just do a CTRL-BREAK on that window and the
dump will be displayed (works on any platform as well).

-- Jeanfrancois


>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>