Tomcat's accept count
java, networking, tcp, tomcat
Solution
This is a direct pass-through to the `backlog` parameter of ServerSocket's constructor. The idea is that the OS can hold onto incoming connections even if they can't be processed right away. It's only useful if you have bursty traffic and fast processing times.
Problem
I have the following question on Tomcat's `acceptCount`. It says: The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 10. I am not sure how this works. I mean I know that there is a separate TCP queue that determines how many connections can come so if I put `acceptCount` in application level e.g. 30000, does it make any difference? I mean it seems that this configuration is not useful. Am I right?