You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cin Lung <ci...@gmail.com> on 2010/04/08 13:50:02 UTC

Tomcat with NIO???

Is this real? I found this tomcat setting from the following site:
http://www.javalobby.org/java/forums/t92965.html
 
Here is the setting (see the higlighted part):
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" connectionTimeout="20000" acceptorThreadCount="2"
redirectPort="8443" socket.directBuffer="false"/>
 
Is this mean that there is a tomcat version that uses NIO? Or maybe is this
a tweak?
 
Any comments.
 
TIA
Rendra

Re: Tomcat with NIO???

Posted by ci...@gmail.com.
Sorry about the importance level again - completely forgotten. I got used to press ctrl-s for quick send email :)
GOD is GREAT!

-----Original Message-----
From: "Caldarale, Charles R" <Ch...@unisys.com>
Date: Thu, 8 Apr 2010 08:16:57 
To: Tomcat Users List<us...@tomcat.apache.org>
Subject: RE: Tomcat with NIO???

> From: Cin Lung [mailto:cinlung@gmail.com]
> Subject: RE: Tomcat with NIO???
> Importance: High

Hmmm... you seem to have forgotten to turn off the high importance setting - again.  It's rather annoying.

> Which setting should I use for my server.xml to get better performance
> under heavy duty job 

The only real way to tell is to benchmark with *your* applications.  Generalizations are fraught with error.  You can search the archives for several fairly recent benchmark reports - but they're all for specific purposes, not your particular webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat with NIO???

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Cin Lung [mailto:cinlung@gmail.com]
> Subject: RE: Tomcat with NIO???
> Importance: High

Hmmm... you seem to have forgotten to turn off the high importance setting - again.  It's rather annoying.

> Which setting should I use for my server.xml to get better performance
> under heavy duty job 

The only real way to tell is to benchmark with *your* applications.  Generalizations are fraught with error.  You can search the archives for several fairly recent benchmark reports - but they're all for specific purposes, not your particular webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat with NIO???

Posted by Cin Lung <ci...@gmail.com>.
Let me rephrase:

Which setting should I use for my server.xml to get better performance under
heavy duty job (and under light duty as well if posible to get both):
    <Connector port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" connectionTimeout="20000"
acceptorThreadCount="2"
               redirectPort="8443" socket.directBuffer="false"/> 

Or the standard setting that comes with tomcat installation:
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Mark: can you point any site that shows benchmark result for both protocol
above?

In the mean time I will read the doc that Mark gave to me.

Thanks


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, April 08, 2010 7:45 PM
To: Tomcat Users List
Subject: Re: Tomcat with NIO???

On 08/04/2010 13:41, Cin Lung wrote:
> Oooohhh... I just found out that the protocol is bundled inside 
> tomcat-coyote.jar. I never looked into the tomcat lib folder.
> 
> Has anyone benchmark which protocol is better performance?
Yes.

> The Http11NioProtocol or Http/1.1?
That question makes no sense. NIO is an implementation of HTTP/1.1

Mark

> 
> Thanks
> Rendra
> 
> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org]
> Sent: Thursday, April 08, 2010 6:54 PM
> To: Tomcat Users List
> Subject: Re: Tomcat with NIO???
> 
> On 08/04/2010 12:50, Cin Lung wrote:
>> Is this real?
> Yes.
> 
>> I found this tomcat setting from the following site:
>> http://www.javalobby.org/java/forums/t92965.html
>>  
>> Here is the setting (see the higlighted part):
>> <Connector port="8080"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
>> maxThreads="150" connectionTimeout="20000" acceptorThreadCount="2"
>> redirectPort="8443" socket.directBuffer="false"/>
>>  
>> Is this mean that there is a tomcat version that uses NIO?
> No there isn't a version of Tomcat that uses NIO. There are many 
> versions thast use it and have done for a number of years.
> 
>> Or maybe is this a tweak?
> No.
> 
>> Any comments.
> Try reading the documentation, starting with this:
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat with NIO???

Posted by Mark Thomas <ma...@apache.org>.
On 08/04/2010 13:41, Cin Lung wrote:
> Oooohhh... I just found out that the protocol is bundled inside
> tomcat-coyote.jar. I never looked into the tomcat lib folder.
> 
> Has anyone benchmark which protocol is better performance?
Yes.

> The Http11NioProtocol or Http/1.1?
That question makes no sense. NIO is an implementation of HTTP/1.1

Mark

> 
> Thanks
> Rendra
> 
> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org] 
> Sent: Thursday, April 08, 2010 6:54 PM
> To: Tomcat Users List
> Subject: Re: Tomcat with NIO???
> 
> On 08/04/2010 12:50, Cin Lung wrote:
>> Is this real?
> Yes.
> 
>> I found this tomcat setting from the following site:
>> http://www.javalobby.org/java/forums/t92965.html
>>  
>> Here is the setting (see the higlighted part):
>> <Connector port="8080"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
>> maxThreads="150" connectionTimeout="20000" acceptorThreadCount="2"
>> redirectPort="8443" socket.directBuffer="false"/>
>>  
>> Is this mean that there is a tomcat version that uses NIO?
> No there isn't a version of Tomcat that uses NIO. There are many versions
> thast use it and have done for a number of years.
> 
>> Or maybe is this a tweak?
> No.
> 
>> Any comments.
> Try reading the documentation, starting with this:
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat with NIO???

Posted by Cin Lung <ci...@gmail.com>.
Oooohhh... I just found out that the protocol is bundled inside
tomcat-coyote.jar. I never looked into the tomcat lib folder.

Has anyone benchmark which protocol is better performance? The
Http11NioProtocol or Http/1.1?

Thanks
Rendra

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, April 08, 2010 6:54 PM
To: Tomcat Users List
Subject: Re: Tomcat with NIO???

On 08/04/2010 12:50, Cin Lung wrote:
> Is this real?
Yes.

> I found this tomcat setting from the following site:
> http://www.javalobby.org/java/forums/t92965.html
>  
> Here is the setting (see the higlighted part):
> <Connector port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
> maxThreads="150" connectionTimeout="20000" acceptorThreadCount="2"
> redirectPort="8443" socket.directBuffer="false"/>
>  
> Is this mean that there is a tomcat version that uses NIO?
No there isn't a version of Tomcat that uses NIO. There are many versions
thast use it and have done for a number of years.

> Or maybe is this a tweak?
No.

> Any comments.
Try reading the documentation, starting with this:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat with NIO???

Posted by Mark Thomas <ma...@apache.org>.
On 08/04/2010 12:50, Cin Lung wrote:
> Is this real?
Yes.

> I found this tomcat setting from the following site:
> http://www.javalobby.org/java/forums/t92965.html
>  
> Here is the setting (see the higlighted part):
> <Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
> maxThreads="150" connectionTimeout="20000" acceptorThreadCount="2"
> redirectPort="8443" socket.directBuffer="false"/>
>  
> Is this mean that there is a tomcat version that uses NIO?
No there isn't a version of Tomcat that uses NIO. There are many
versions thast use it and have done for a number of years.

> Or maybe is this a tweak?
No.

> Any comments.
Try reading the documentation, starting with this:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org