tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48743] New: Make the SLEEP variable in catalina.sh settable from the environment.
Date Mon, 15 Feb 2010 03:45:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48743

           Summary: Make the SLEEP variable in catalina.sh settable from
                    the environment.
           Product: Tomcat 6
           Version: 6.0.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: blair@orcaware.com


I have a web application that has a single threaded job executor that it blocks
on a condition variable waiting for a new task to show up with a timeout of 15
seconds.  Under light or no load when the web application is shut down it can
take 15+ seconds for the thread to wake up and check that it should be shut
down.

Given that I know it can take 15+ seconds for the application to be shut down,
it would be nice to set the SLEEP variable in catalina.sh so it doesn't exit
after 5 seconds.

So maybe rename SLEEP to CATALINA_SLEEP and if it isn't set then default it to
5.

Maybe I should update my web application to not wait 15 seconds before checking
to shut down, but I don't bounce the server often and I'd rather not have the
thread wake up more often then it needs to.

Thanks,
Blair

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message