File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes APR and NIO Connectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "APR and NIO Connectors" Watch "APR and NIO Connectors" New topic

APR and NIO Connectors

subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
What are these?
[ October 02, 2007: Message edited by: Bear Bibeault ]
Jeff Genender

Joined: Sep 06, 2007
Posts: 14
The APR connector is a native JNI based connector that uses the Apache Portable Runtime libaray. Essentially is takes a parts of the code that Apache Httpd is written on and allows Tomcat to leverage the same speed and scalability as an Apache Httpd server. Its very high performant.

The NIO connector is a connector that does not block with threads. When clients connect, they are not siitingin in a blocked thread waiting for the Tomcat server to answer. Blocked threads eat up resources. With NIO, the connection gets parked, and the thread can be released to do other things. This, along with useing the CometProcessor servlet can allow an application to scale much more concurrent connections than with a standard connector.
I agree. Here's the link:
subject: APR and NIO Connectors
It's not a secret anymore!