Am Mittwoch, 6. Januar 2010 09:15:23 schrieb Mark Thomas: > On 06/01/2010 08:03, Peter Beichert wrote: > > Hi, > > > > I like to limit the number of connections tomcat (6.0.20) accepts. > > However, this is not possible. > > > > For testing purpose I use the following connector statement: > > > > <Connector port="8080" acceptCount="5" maxThreads="3" minSpareThread="1" > > maxSpareThreads="2" /> > > minSpareThread & maxSpareThreads do nothing and will be ignored. > > > Here only 3 threads should process the requests and 5 more requests > > should be queued. > > > > If I start 100 parallel requests to a servlet which does nothing else > > than waiting 5 seconds, I would expect that only 8 requests would be > > accepted, the rest should receive a connection refused. > > However all 100 Requests a accepted and it takes a long time until they > > finish. > > > > I use Debian Linux and have the same behavior with suns jdk1.6.0_17 and > > the ibm-jdk. > > > > I appreciate any help how to solve this problem. > > This works as expected for me using JMeter as the test client. How are > you testing this? I used jmeter and in addition I started 100 requests in parallel by a shell- script with wget. With wget I could observe all the waiting threads. Their number got reduced by 3 every 5 seconds. All requests got answered with Status 200. I did not get any connection refused. > > Mark > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org