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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]