Meaningless Drivel is fun!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "APR and NIO Connectors" Watch "APR and NIO Connectors" New topic
Author

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 ]

http://subodh-gupta.blogspot.com
Jeff Genender
author
Greenhorn

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: http://aspose.com/file-tools
 
subject: APR and NIO Connectors