The problem here is that there are actually two properties
controlling the timeouts during shutdown.
The one you are setting, wrapper.shutdown.timeout, controls
the maximum time that the Java application is allowed to
report that it has stopped. This is happens when the
WrapperListener.stop method completes, not when the JVM exits. http://wrapper.tanukisoftware.org/doc/english/prop-shutdown-timeout.html
The second property controls the maximum time between the
stop method completing and the JVM process actually exiting.
This can take some time if there are user shutdown hooks
which are taking a while to run. Fro mthe logs, this is the
period which is taking time for you. http://wrapper.tanukisoftware.org/doc/english/prop-jvm-exit-timeout.html
Post back and let me know if you got things working.
Cheers,
Leif
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Setting the timeout to 0 is NOT recommended. If you do that
and the JVM really hangs on shutdown it will never recover.
I suggest a value like 300 or something if you want it
long. But being more realistic is better. If you do that
then it may hang for 5 minutes, but it will recover eventually.
I'll close this off.
Cheers,
Leif
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
log and conf files showing correct shutdown and windows shutdown error
Logged In: YES
user_id=228081
The problem here is that there are actually two properties
controlling the timeouts during shutdown.
The one you are setting, wrapper.shutdown.timeout, controls
the maximum time that the Java application is allowed to
report that it has stopped. This is happens when the
WrapperListener.stop method completes, not when the JVM exits.
http://wrapper.tanukisoftware.org/doc/english/prop-shutdown-timeout.html
The second property controls the maximum time between the
stop method completing and the JVM process actually exiting.
This can take some time if there are user shutdown hooks
which are taking a while to run. Fro mthe logs, this is the
period which is taking time for you.
http://wrapper.tanukisoftware.org/doc/english/prop-jvm-exit-timeout.html
Post back and let me know if you got things working.
Cheers,
Leif
Logged In: YES
user_id=1623448
Thank you - it is all working!
The default is 15 sec and mine needed about 20 sec but may
take longer - so for now I have set:
wrapper.jvm_exit.timeout=0
Now we need to reduce/eliminate the time our shutdown hook
takes - but that will take considerable effort - we need to
rethink the shutdown process.
This error can now be closed
Logged In: YES
user_id=228081
Setting the timeout to 0 is NOT recommended. If you do that
and the JVM really hangs on shutdown it will never recover.
I suggest a value like 300 or something if you want it
long. But being more realistic is better. If you do that
then it may hang for 5 minutes, but it will recover eventually.
I'll close this off.
Cheers,
Leif