Re: how http connector backlog attribute works?

2013-12-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 侯树成, On 12/27/13, 4:24 AM, 侯树成 wrote: Yes, this must use BIO mode, because the NIO maxConnections=1 in default, it won't block the LimitLatch. In my test case,(use JMeter, thread number is 5), 2 requests will refused soon(just 1s-2s later),

Re: how http connector backlog attribute works?

2013-12-29 Thread 侯树成
Hi, Today, I find the acceptCount of connector is not work like it's config. You can try it like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=2 maxThreads=1 minSpareThreads=1/ Also use LR/JMeter make more

Re: how http connector backlog attribute works?

2013-12-27 Thread Mark Thomas
On 27/12/2013 07:27, Mark Eggers wrote: On 12/26/2013 11:09 PM, 侯树成 wrote: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=1 maxThreads=1 minSpareThreads=1/ 2. deploy a war

Re: how http connector backlog attribute works?

2013-12-27 Thread Mark Eggers
On 12/27/2013 12:37 AM, Mark Thomas wrote: On 27/12/2013 07:27, Mark Eggers wrote: On 12/26/2013 11:09 PM, 侯树成 wrote: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=1

Re: how http connector backlog attribute works?

2013-12-27 Thread Mark Thomas
On 27/12/2013 08:53, Mark Eggers wrote: On 12/27/2013 12:37 AM, Mark Thomas wrote: On 27/12/2013 07:27, Mark Eggers wrote: On 12/26/2013 11:09 PM, 侯树成 wrote: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2

Re: how http connector backlog attribute works?

2013-12-27 Thread 侯树成
Yes, this must use BIO mode, because the NIO maxConnections=1 in default, it won't block the LimitLatch. In my test case,(use JMeter, thread number is 5), 2 requests will refused soon(just 1s-2s later), then another 3 requests will served correctly.In source code, I find the backlog attribute

how http connector backlog attribute works?

2013-12-26 Thread 侯树成
Hi, I find a problem of http bio connector,I need help. You can find it in flowing steps: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=1 maxThreads=1 minSpareThreads=1/ 2. deploy a

Re: how http connector backlog attribute works?

2013-12-26 Thread André Warnier
侯树成 wrote: Hi, I find a problem of http bio connector,I need help. You can find it in flowing steps: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=1 maxThreads=1 minSpareThreads=1/

Re: how http connector backlog attribute works?

2013-12-26 Thread Mark Eggers
On 12/26/2013 11:09 PM, 侯树成 wrote: Hi, I find a problem of http bio connector,I need help. You can find it in flowing steps: 1.set tomcat connector like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 acceptCount=1