Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 1/27/12 4:16 PM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 1/27/12 6:35 PM, bxqdev wrote: 10'000 req/sec 300Kb/response That should be just under 3GiB (gigabyte) per second response, not 3Gb (gigabit). actually when i measured it was less than 1Gb/sec Is that in gigabits or

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid *
On 27 Jan 2012, at 23:53, bxqdev bxq...@themailbay.com wrote: On 1/28/2012 3:41 AM, Pid wrote: On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 6:33 AM, Terence M. Bandoian wrote: How much is a lot? 10'000/sec How many Tomcats are you running? 1 How much RAM/CPU per server etc? 8GB/Xeon How big is the average response? 300Kb How many NICs do you have? Have fast are they? one. as i said above, the

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 12:09 PM, Pid * wrote: On 27 Jan 2012, at 23:53, bxqdevbxq...@themailbay.com wrote: On 1/28/2012 3:41 AM, Pid wrote: On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Mark Thomas
On 27/01/2012 23:16, bxqdev wrote: 2. async servlet api is not much usefull for servers, with nio connectors (tomcat-7). at least you can't image the case. I don't say that. In fact, I said exactly the opposite. well, then what's the case to use both of this technologies? can you make up a

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid
On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of connector+servlet api 1. bio connector + async servlet 2. nio connector + sync servlet 3. nio

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
well, let's separate the wheat from the chaff and arrogance: 1. nio connector is useful when one needs to handle a lot of client connections, keep-alive ones, for example. 2. async servlet is useful when one app thread can fulfill many responses. 3. communication between connector and async

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of connector+servlet api 1. bio connector + async servlet 2. nio

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid *
On 28 Jan 2012, at 13:34, bxqdev bxq...@themailbay.com wrote: On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 6:14 PM, Pid * wrote: On 28 Jan 2012, at 13:34, bxqdevbxq...@themailbay.com wrote: On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread André Warnier
Hi. Your original question was quote 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? 2. Do i get any advantages if i use Sync Servlet Api with Http11NioProtocol connector or do i have to use Async Servlet

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to look on the situation from another point of view, the one which is not depressive. i hope my question answer summary upgraded your level of tomcat understanding. and that's a good thing, because you

[OT] Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid
On 28/01/2012 19:07, bxqdev wrote: andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to look on the situation from another point of view, the one which is not depressive. i hope my question answer summary upgraded your level of tomcat understanding. and

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread André Warnier
Considering your previous posts, I wasn't really expecting you to take this lying down. You haven't disappointed me. The world is full of wonders. Un paquet de m. dans un bas de soie. :-) bxqdev wrote: andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Pid
On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? Eh? Is that what you really mean? 2. Do i get any advantages if i use Sync Servlet Api with

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Mark Thomas
On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? There is no such protocol as apache.coyote.http11.Http11NioProtocol so if you try using it, that

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/27/2012 8:29 PM, Mark Thomas wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? There is no such protocol as

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? Eh? Is that what you really mean? i mean what are the reasons to

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Mark Thomas
On 27/01/2012 21:03, bxqdev wrote: On 1/27/2012 8:29 PM, Mark Thomas wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? There is no such

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Pid
On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? Eh? Is that what you

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 1:14 AM, Mark Thomas wrote: On 27/01/2012 21:03, bxqdev wrote: On 1/27/2012 8:29 PM, Mark Thomas wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Mark Thomas
On 27/01/2012 21:31, bxqdev wrote: On 1/28/2012 1:14 AM, Mark Thomas wrote: On 27/01/2012 21:03, bxqdev wrote: On 1/27/2012 8:29 PM, Mark Thomas wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 1:53 AM, Mark Thomas wrote: On 27/01/2012 21:31, bxqdev wrote: On 1/28/2012 1:14 AM, Mark Thomas wrote: On 27/01/2012 21:03, bxqdev wrote: On 1/27/2012 8:29 PM, Mark Thomas wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Mark Thomas
On 27/01/2012 22:22, bxqdev wrote: ok, so what about this case: http nio connector + async servlet i would say that in this variant there're 2 points of asynchronism - both connector and servlet code are async. is there a case when i would need such a combination? Where someone might need

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Pid
On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 2:28 AM, Mark Thomas wrote: On 27/01/2012 22:22, bxqdev wrote: ok, so what about this case: http nio connector + async servlet i would say that in this variant there're 2 points of asynchronism - both connector and servlet code are async. is there a case when i would need such a

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Mark Thomas
On 27/01/2012 22:41, bxqdev wrote: On 1/28/2012 2:28 AM, Mark Thomas wrote: On 27/01/2012 22:22, bxqdev wrote: ok, so what about this case: http nio connector + async servlet i would say that in this variant there're 2 points of asynchronism - both connector and servlet code are async.

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the premises to use either

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 2:49 AM, Mark Thomas wrote: On 27/01/2012 22:41, bxqdev wrote: On 1/28/2012 2:28 AM, Mark Thomas wrote: On 27/01/2012 22:22, bxqdev wrote: ok, so what about this case: http nio connector + async servlet i would say that in this variant there're 2 points of asynchronism -

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Pid
On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello, Developers! 1. What are the

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On 27/01/2012 14:53, bxqdev wrote: Hello,

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Pid
On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On 1/27/2012 8:27 PM, Pid wrote: On

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread bxqdev
On 1/28/2012 3:41 AM, Pid wrote: On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16 AM, Pid wrote: On 27/01/2012 21:06, bxqdev wrote: On

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-27 Thread Terence M. Bandoian
How much is a lot? 10'000/sec How many Tomcats are you running? 1 How much RAM/CPU per server etc? 8GB/Xeon How big is the average response? 300Kb How many NICs do you have? Have fast are they? -Terence Bandoian