You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/02/15 04:45:42 UTC
DO NOT REPLY [Bug 48743] New: Make the SLEEP variable in catalina.sh
settable from the environment.
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
DO NOT REPLY [Bug 48743] Make the SLEEP variable in catalina.sh
settable from the environment.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48743
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-02-15 11:08:19 UTC ---
The default could be made an environment variable rather than hard coding to 5
(simple patch) but this is already configurable. Use:
./catalina.sh stop n
to have Tomcat wait n seconds.
As ever, patches always welcome.
--
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