-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom,

On 9/7/2010 11:49 AM, Tom Jones wrote:
> I'm trying to figure out which http connector is best suited for my
> needs. I was looking around for some info on anything that compares them
> all but I really did no find much.
> 
> Out of the three connectors listed can someone please help me
> understand which I should be using. I'm running Tomcat 6.0.26 on Mac OS
> X 10.5.8 64bit with Java 1.6.x. I'm using SSL directly to Tomcat. I read
> that it was faster than using Apache as the front-end. Oh yea, almost
> all of my content is dynamic, almost no static content at all.
> 
> Http11Protocol
> Http11AprProtocol
> Http11NioProtocol 
> 
> Maybe I should also ask, should I even be messing around with changing the 
> connector type?

Most people get started using the Http11Protocol connector because it's
configured by default and usually works fine without any tinkering with
configuration.

The APR connector requires a native library which can be tricky to
configure before the rest of your configuration is working (particularly
for those new to Java, Tomcat, or web applications). Fortunately, the
Http11AprProtocol falls-back on Http11Protocol if the APR native library
isn't available.

The NIO connector requires no native library or anything like that, but
it does have a whole slew of settings that can be used to squeeze every
last drop of performance out of the connector. I'm not sure exactly how
the TC devs feel about it, but it still seems a bit "young" though lots
of folks appear to be using it in production quite successfully.

For more information, start here:
http://tomcat.apache.org/tomcat-6.0-doc/connectors.html

Unfortunately, that document has no information on the NIO connector.
It's probably because that page was just carried-forward from an older
version of Tomcat and not updated. For the real meat, you have to go to
the "configuration" section of the site and look at the Connectors.

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

This covers the blocking I/O connector as well as the NIO and APR
connectors, and, at the very bottom, gives a nice summary of the
differences between BIO, NIO, and APR.

If you're using AJP (which it doesn't sound like you are), it looks like
APR is an option, but not NIO.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyHl2AACgkQ9CaO5/Lv0PCpgwCgiWeCHST5fXhEU/CVMjrD7Ntx
yvMAnRpVMHPU8y4rwLPo9FFYAWV2LZbh
=Sjwd
-----END PGP SIGNATURE-----

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

Reply via email to