File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

APR and NIO Connectors

 
subodh gupta
Ranch Hand
Posts: 203
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are these?
[ October 02, 2007: Message edited by: Bear Bibeault ]
 
Jeff Genender
author
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic