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:ma...@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:ma...@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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org