Bug 56796

Summary: Avoid sleep usage in org.apache.tomcat.util.threads.ThreadPoolExecutor#contextStopping
Product: Tomcat 8 Reporter: romain.manni-bucau <rmannibucau>
Component: UtilAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.0.x-trunk   
Target Milestone: ----   
Hardware: PC   
OS: All   

Description romain.manni-bucau 2014-07-31 12:10:19 UTC
At the moment on trunk  org.apache.tomcat.util.threads.ThreadPoolExecutor#contextStopping does a sleep(200). Would be great to be able to remove it.

This is an issue in particular when using arquillian and if you deploy several small wars - one by test.

On BVal TCKs in TomEE it makes tests during ~6mn on my machines so removing it I can gain (758 test * 200 ms) = 151s (looks like a big part ;))
Comment 1 Mark Thomas 2014-08-04 17:51:18 UTC
I don't see any reason for the sleep. I have removed it.

The fix has been applied to 8.0.x for 8.0.11 onwards and to 7.0.x for 7.0.56 onwards.