|
From: Leif M. <le...@ta...> - 2005-12-08 05:59:11
|
Elizabeth,
Yes, as I thought, it appears that the shutdown hook is not being
run when your
application calls System.exit. I did a Google search and am not yet
sure how this
could be happening as you are using java 1.4.2... :-/ From the logs, I
can see that
the wrapper's shutdown hook is indeed being registered:
INFO | jvm 1 | 2005/12/07 21:55:11 | Wrapper Manager: Registering
shutdown hook
Any idea on your end? I have never seen this in any JVM other than
old 1.2
versions. I'll post back if I find anything.
As a workaround, calling WrapperManager.stop() rather than System.exit()
will make sure the JVM exits correctly.
The problem is that if the JVM exits without its shutdown hook being
run, or if
the user code calls System.halt() then the Wrapper process will assume
that the
JVM crashed. This is why it is being restarted.
Cheers,
Leif
Elizabeth Cooper wrote:
> Leif:
>
> I have added the wrapper log, below.
>
> The way this program works is that it has a built in timer that exits
> the program after 2 minutes. It started at 21:55 and exited about 2
> minutes later. I deleted all the ping-ping stuff between the start and
> stop.
>
> I have commented out
> #wrapper.single_invocation=TRUE
> #wrapper.on_exit.default=SHUTDOWN
>
> in the configuration, but I made no other changes (other than
> wrapper.debug=true).
>
> You can see that the JVM restarted the application after it shut down.
>
> Any ideas about this?
>
> ----------- wrapper.log -----------
>
<snip>
|