Bug 56796 - Avoid sleep usage in org.apache.tomcat.util.threads.ThreadPoolExecutor#contextStopping
Summary: Avoid sleep usage in org.apache.tomcat.util.threads.ThreadPoolExecutor#conte...
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Util (show other bugs)
Version: 8.0.x-trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2014-07-31 12:10 UTC by romain.manni-bucau
Modified: 2014-08-04 17:51 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.