-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hermes,
On 1/16/13 3:07 PM, Hermes Flying wrote: > I believe acceptCount can not work with value 0 because if I am > not wrong, the acceptCount is the value passed as backlog in the > ServerSocket constructor. According to javadoc if the backlog > value is less than or equal to 0, then a default value is used > instead which is 50. So acceptCount=0 does not mean that backlog > queue does not queue anything. That is why I used the value 1 > instead. Fair enough. > Also when I say I was expecting a network failure (bad terminology) > I meant that the client would get a failure in the TCP attempt to > connect. Okay. > Also I used maxThreads=0 and the server worked fine. Did not see > any problem in my applications. Did not check the logs though. I > assumed that perhaps 0 would be set to some default value. Can not > answer about your observation. It also makes me wonder. Sure you can answer about my observation: look at your log files. > Finally concerning my test setup, I need to configure Tomcat to > limit the amount of concurrent client requests accepted. I understand that from reading your initial post. > I need to configure it so that e.g. 300 concurrent clients can > connect but the 301 will not be able to connect (not queued by OS > either). That client will see a failure to connect to server in > TCP level. I understand your requirements (though I think they are silly). > Do you need more info on this? I was asking about your test setup. You said you made 2 simultaneous requests with what seems to be an effective throughput of 2 simultaneous requests (1 in-process and 1 in the queue) and were surprised that you got responses. I was not surprised. Are you still surprised? Next, how are you making those two simultaneous requests (specifically: like, are you using some tool to do it or did you write your own code)? What happens if you have maxThreads=1 and acceptCount=1 and you make 10 simultaneous requests? 100? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEAREIAAYFAlD3DWcACgkQ9CaO5/Lv0PAwDwCdGGprLr1BEl3vueSsWcA3A7px kP0AoLq23hNN8sJkcHnFJQBx+2RwP/Ka =4dS/ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org