Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361655

Summary: ExecutorThreadPool.isLowOnThreads() returns wrong value
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: serverAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.5.3   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simone Bordet CLA 2011-10-21 10:00:54 EDT
The implementation of ExecutorThreadPool.isLowOnThreads() compares the number of tasks ever submitted to the pool with the maximum pool size, which is wrong.

After some time, the number of tasks ever submitted will overgrow the maximum pool size, making the pool look like is always low on threads.
Comment 1 Simone Bordet CLA 2011-10-21 10:27:32 EDT
Fixed so that ExecutorThreadPool.isLowOnThreads() now implements the same logic as QueuedThreadPool.isLowOnThreads().