tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Connectors: Http11Protocol vs. Http11NioProtocol
Date Fri, 27 Jan 2012 22:39:59 GMT
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
>>>>> org.apache.coyote.http11.Http11NioProtocol connectors?
>>>>
>>>> Eh?  Is that what you really mean?
>>>
>>> i mean what are the reasons to use either connector variant.
>>
>> NIO can handle more concurrent connections.
> 
> yeah, that's why i use the nio connector.
> 
>>
>>>>> 2. Do i get any advantages if i use Sync Servlet Api with
>>>>> Http11NioProtocol connector or do i have to use Async Servlet Api
>>>>> to get
>>>>> the advantages?
>>>>
>>>> What advantages are you looking for?  How much traffic are you
>>>> expecting
>>>> to handle?
>>>
>>> a lot of. i'm looking for advantages in throughput and performance, for
>>> example.
>>
>> How much is a lot?
> 
> 10'000/sec
> 
>> How many Tomcats are you running?
> 
> 1
> 
>> How much RAM/CPU per server etc?
> 
> 8GB/Xeon

Only 1 CPU?

>> How big is the average response?
> 
> 300Kb

So you want to send 300k * 10000 / sec?  Isn't that just under 3Gb per
second?


>>>>> 3. How do i choose which one to use in any particular case?
>>>>
>>>> First, don't prematurely optimise.  Have you tested your application
>>>> yet?
>>>
>>> yes, i need a better throughput and performance.
>>
>> Please provide details.
>>
>> How have you optimised your application so far, or are you hoping to
>> optimise Tomcat first?
> 
> webapp is optimized, i want to optimize tomcat.

How did you optimise your webapp for 3Gb/sec with only 8Gb of RAM?

In 3 seconds you'll have produced more data than you have RAM, how have
you optimised the garbage collector for this?


p


-- 

[key:62590808]


Mime
View raw message