[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jboss process fails to load properly
From: |
Martin Pala |
Subject: |
Re: jboss process fails to load properly |
Date: |
Wed, 1 Aug 2012 10:17:41 +0200 |
Hi,
during the restart, monit checks that the application stopped (before calling
start) by looking for the PID from the piddfile - if the PID is not present in
the process table or the pidfile was removed, Monit thinks the process stopped.
In your case it seems, that the pidfile is removed before the process stops (by
some stop script or maybe the java application itself). The solution could be
to use the pattern based check:
check process my process matching "mypattern"
Regards,
Martin
On Aug 1, 2012, at 6:11 AM, Zippy Zeppoli <address@hidden> wrote:
> Hi List,
> I am using monit to monitor a jboss (java) process to restart it when it
> fails.
> It is doing this correctly when the process dies based on it's pid, but I
> suspect it is trying to start it before the process has fully died down.
>
> The reason for this is that when it restarts the java process, all the of the
> web applications fail to load properly. When I do this manually, the web apps
> load fine.
>
> Any suggestions for working around this?
>
> Thanks,
> z
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general