Folks, I finally put together an example of HttpCore NIO based HTTP server optimized for serving static files off the disk:
https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java The code is not pretty. There are lots of instanceof checks all over the place, but according to my (very unscientific) performance benchmarks the use of FileChannel direct I/O seems to result in a 60% performance improvement even for fairly small files (12K). I'll try to run a little more systematic tests and put the results on wiki. Overall, it looks NIO might even outperform classic I/O when used to serve static content off the disk. I thought some people might be interested to hear that. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
