Menu

#142 wrapper.shutdown.timeout has no effect

v3.2.1
closed-invalid
5
2006-10-18
2006-10-17
Anonymous
No

I have a problem with Windows shutdown - automatic
termination of services

wrapper.shutdown.timeout=300
or
wrapper.shutdown.timeout=0

have no effect

please see attached files for debug-log/conf details

Discussion

  • Nobody/Anonymous

    log and conf files showing correct shutdown and windows shutdown error

     
  • Leif Mortenson

    Leif Mortenson - 2006-10-18
    • labels: --> Configuration
    • milestone: --> v3.2.1
    • assigned_to: nobody --> mortenson
     
  • Leif Mortenson

    Leif Mortenson - 2006-10-18

    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

     
  • Stocker

    Stocker - 2006-10-18

    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

     
  • Leif Mortenson

    Leif Mortenson - 2006-10-18
    • status: open --> closed-invalid
     
  • Leif Mortenson

    Leif Mortenson - 2006-10-18

    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

     

Log in to post a comment.