Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294846 - tomcat initscript fails, server takes longer to stop
Summary: tomcat initscript fails, server takes longer to stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 13:34 UTC by Ramon
Modified: 2015-08-21 07:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
timemout patch (tomcat-initscript-timeout.patch,1.05 KB, patch)
2009-11-27 13:34 UTC, Ramon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ramon 2009-11-27 13:34:07 UTC
The tomcat initscript fails in many cases for us, the tomcat server needs more time to shutdown all it's applications and running sessions.

The attached patch adds a configurable timeout to conf.d/tomcat-6 and uses it in init.d/tomcat-6

For us a default value of 300 seconds works fine, i can't find the default timeout that start-stop-daemon uses documented anywhere

Reproducible: Always

Steps to Reproduce:
1.Load ~ 5 webapps in server
2.Generate reasonable load ( 250-500 clients in our case)
3. Try to stop the server with the initscript

Actual Results:  
init-script reports fail, server stops a few seconds later

Expected Results:  
init-script should not fail

Given that the amount of time to wait is dependent on load, a configurable timeout in conf.d seems the way to go.
Comment 1 Ramon 2009-11-27 13:34:54 UTC
Created attachment 211329 [details, diff]
timemout patch
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-06-06 12:40:33 UTC
Please test 6.0.26-r1 if it's ok now.
Comment 3 Patrice Clement gentoo-dev 2015-08-21 07:25:04 UTC
Marking this bug as FIXED.