On Sun, 2012-09-23 at 12:35 +0100, Mark Thomas wrote:
> ab -c 4 -k -n 1000000 http://localhost:8080/test-1k.txt

The concurrency of the test is very low, there will be only 4 threads
used with that test, which means decent sync performance.

Although with NIO the executor count can remain lower than on java.io,
many webapps will still need a significant amount of them, so in
practice it is simply not possible to have any syncing (for example,
there's one needed sync in the APR connector for adding sockets back to
the poller, and it hurts a lot - essentially, the connector works well
enough only with a "small" thread pool).

So adding caches like this is likely not a good idea.

Rémy



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to