Community
Participate
Working Groups
Build Identifier: 7.2.1.v20101111 Hi, I had ExecutorThreadPool with core thread size of just two. btw: for special testing, not production ;-) It works well in 7.1.x, but jetty 7.2.x breaks it. The core size has to be at least 3. Maybe more. I haven't debug so deep. Three works for me. Increasing maximum size does not help. If it's not a bug then it would be at least nice to find it in ExecutorThreadPool javadoc. thanks, Jan Reproducible: Always Steps to Reproduce: 1. just add server.setThreadPool(new ExecutorThreadPool(2, 100, 100)); 2. try to run it
the issue is that jetty takes some threads from the pool for long running tasks (eg acceptor threads). If it runs out of threads, then it has no threads left to handle requests. We used to have a check in there for threads > acceptors.... I'll investigate why that check/warning is not working.
I have patched jetty so that a warning is given is there are less threads than acceptors. r2564