On Thu, May 9, 2019 at 2:36 PM Mark Thomas <ma...@apache.org> wrote: > accept() is effectively synchronized at the OS level. > > I recall doing some testing on this and there was a small gain in > throughput when testing on localhost without keep-alive if I used two > accept threads. Essentially, one thread was accepting the next > connection while the other was handing a connection off to a processing > thread. There was no benefit for more than 2 accept threads. > I also had to keep the total number of concurrent requests to ~number of > available cores. >
Ok. > > I can think of no real world scenario where Tomcat would be accepting > new connections fast enough with a low enough concurrency level for 2 > accept threads be useful. > > +1 to hard-coding to a single acceptor thread and removing the plumbing > that supports more than that. > Ok, done. So I suppose you prefer keeping the ability to have multiple poller threads for NIO ? Rémy