[GLASSFISH-17416] Add configurable delay to servlet container shutdown process. Created: 12/Oct/11 Updated: 07/Mar/12
|Reporter:||psprague||Assignee:||Shing Wai Chan|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
The version of tomcat GlassFish's servlet container is based on doesn't allow us to configure a delay before unloading the servlets. Since the threads are set as daemon threads the JVM simply stops them. This means when we try and do a graceful shutdown (asadmin stop-domain --force=false) in-flight requests are killed before they complete.
In Tomcat 6 this method has been changed to support a configurable unload delay.
I would also like to point out that the documentation for asadmin stop-domain states that --force=false waits for threads to complete; while this appears to be true for the EJB container it is not true for the servlet container.
|Comment by Shing Wai Chan [ 06/Jan/12 ]|
Port Tomcat change: http://svn.apache.org/viewvc?view=revision&revision=345286
|Comment by craigwblake [ 07/Mar/12 ]|
Does the commit mean that this has been resolved? If so, what release can we expect this in?