tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Tomcat 6.0.18 related NIO questions.
Date Wed, 22 Dec 2010 16:44:04 GMT
On 22/12/2010 16:31, shrikant patel wrote:
> We are using tomcat connector as follows -->
> <Connector connectionTimeout="500000" port="8080" protocol="HTTP/1.1" ...
> Based on the documentation we are using the blocking call, right?

It depends. Probably the BIO connector but it could also bee the APR
connector. The logs will tell you which.

> I have basic understanding of NIO. My understanding is that tomcat
> internally use Java NIO to read the request into buffer. When complete
> request is read then dispatch it to servlet for processing. That way each
> servlet thread is not blocked on IO. Similarly in case of response, it get
> response from servlet, keep buffering it and send it to client. This way
> servlet is not completely blocked for entire duration of the response being
> send to client.
> Please let me know if this is correct.

No. That is wrong. There is more (simulated) blocking I/O happening than
you think.

> Is there document in this regards you can point to get better understanding?

Bottom of this page.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message