On 29/11/2010 16:23, sol myr wrote:
> Hi,
> 
> I've just started looking into the NIO Connector.
> And I see why it's great to combine NIO+Comet...
> But does it makes any difference outside of Comet?

Yes.

> 
> 1) Namely, if I only have old-fashioned Servlets (not a "CometProcessor") - 
> will it improve performance to use NIO connector (versus the good old HTTP 
> connector)?

That depends on how you define performance.

> I ran a test with such old-fashioned Servlet, and got the impression that 
> Tomcat opens a thread-per-request. So it didn't take advantage of the "non 
> blocking" feature of NIO.

Thread per request - yes (it has to due to how the servlet API is
defined) but not a thread per connection. That is a big difference.

> But then again, perhaps it takes advantage of other NIO features? Such as 
> native buffers, etc?

Nope.

> 2) Also, what about static resources (such as images), assuming they're 
> distributed by Tomcat (with no Apache server at the front)?
> Will they be perform better with NIO connector?

It depends. sendfile is available but that doe snot guarantee better
static content performance.

Mark

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

Reply via email to