Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-12 Thread Yasser Zamani
Ouch! maxConnections! You're right. I failed to take account of it correctly. Actually I was confused connections like threads (because of maxThreads/Connections) and thought they release when their thread releases :[ while a connection keeps alive until response and thread pool is shared betwe

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-12 Thread Mark Thomas
On 12/09/17 10:00, Yasser Zamani wrote: > > > On 9/12/2017 1:17 AM, Mark Thomas wrote: >> On 07/09/17 23:30, Yasser Zamani wrote: >>> Thanks for your attention. >>> >>> Now I downloaded a fresh apache-tomcat-7.0.81-windows-x64 and chenged >>> it's connector in same way (BIO,20,20,10). I get same

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-12 Thread Yasser Zamani
On 9/12/2017 1:17 AM, Mark Thomas wrote: > On 07/09/17 23:30, Yasser Zamani wrote: >> Thanks for your attention. >> >> Now I downloaded a fresh apache-tomcat-7.0.81-windows-x64 and chenged >> it's connector in same way (BIO,20,20,10). I get same result, fortunately :) >> >> OUTPUT: >> >> Using CA

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-11 Thread Mark Thomas
On 07/09/17 23:30, Yasser Zamani wrote: > Thanks for your attention. > > Now I downloaded a fresh apache-tomcat-7.0.81-windows-x64 and chenged > it's connector in same way (BIO,20,20,10). I get same result, fortunately :) > > OUTPUT: > > Using CATALINA_BASE: > "C:\Users\user\.IntelliJIdea2016.

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Yasser Zamani
On 9/7/2017 12:15 PM, Guang Chao wrote: > On Thu, Sep 7, 2017 at 3:59 AM, Yasser Zamani > wrote: > >> Hi there, >> >> I'm studying Servlet 3's async API using tomcat. I see following strange >> behavior from tomcat in a very simple test app! >> >> I have following JMeter test plan: >> Number of

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Yasser Zamani
Thanks for your attention. Now I downloaded a fresh apache-tomcat-7.0.81-windows-x64 and chenged it's connector in same way (BIO,20,20,10). I get same result, fortunately :) OUTPUT: Using CATALINA_BASE: "C:\Users\user\.IntelliJIdea2016.3\system\tomcat\Unnamed_Async-Servlet-Example_2" Using CAT

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Mark Thomas
On 07/09/17 22:22, Yasser Zamani wrote: > At first thanks a lot for your reply! > > On 9/7/2017 1:43 PM, Mark Thomas wrote: >> On 06/09/17 20:59, Yasser Zamani wrote: >>> Hi there, >>> >>> I'm studying Servlet 3's async API using tomcat. I see following strange >>> behavior from tomcat in a very s

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Yasser Zamani
At first thanks a lot for your reply! On 9/7/2017 1:43 PM, Mark Thomas wrote: > On 06/09/17 20:59, Yasser Zamani wrote: >> Hi there, >> >> I'm studying Servlet 3's async API using tomcat. I see following strange >> behavior from tomcat in a very simple test app! > > You are also using the BIO conn

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Mark Thomas
On 06/09/17 20:59, Yasser Zamani wrote: > Hi there, > > I'm studying Servlet 3's async API using tomcat. I see following strange > behavior from tomcat in a very simple test app! You are also using the BIO connector which, since it is blocking, doesn't offer any benefits when using async. You'd

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-07 Thread Guang Chao
On Thu, Sep 7, 2017 at 3:59 AM, Yasser Zamani wrote: > Hi there, > > I'm studying Servlet 3's async API using tomcat. I see following strange > behavior from tomcat in a very simple test app! > > I have following JMeter test plan: > Number of threads (users): 700 > Ramp-Up period (in seconds): 23

BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-06 Thread Yasser Zamani
Hi there, I'm studying Servlet 3's async API using tomcat. I see following strange behavior from tomcat in a very simple test app! I have following JMeter test plan: Number of threads (users): 700 Ramp-Up period (in seconds): 23 Loop count: 1 So JMeter generates 30.43 requests per second and 30