Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294846

Summary: tomcat initscript fails, server takes longer to stop
Product: Gentoo Linux Reporter: Ramon <ramon>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: timemout patch

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.