Samuel Cheung wrote:
Sorry, I have a newbie question on this subject.

If the servlet API adds support for java.nio library (described in section
3.3 here)

http://www.coredevelopers.net/library/j2ee/servlet24/ar01s03.jsp#d0e533,

then will it make sense for servlet container (e.g. Tomcat ) to use the nio
the way described in the article?

Thanks.



-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 04, 2004 2:34 PM
To: Tomcat Developers List
Subject: RE: http://www-106.ibm.com/developerworks/library/j-nioserver/



Howdy,

  
I would have to agree with Remy here.  The example given doesn't really
prove anything in my mind.
    

That's what I was thinking too as I read the article.  It's not
representative of the real world.  But I wanted to see if I was alone in
my skepticism or not.  (And I remember we've discussed NIO multiple
times in the past).

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
What would this benchmark look like if Tomcat also was configured to use a max of x threads, just like sse? If the difference was negligible/none, then IMHO NIO effect is no different than playing with max threads value. However, if there was still a considerable difference for heavy loads, i would be inclined to changing the API to make it compatible w/ both, so that the container could toggle between using IO and NIO based on a config, load, etc.
My undeserved 2 cents. :)
-- 
Sincerely,
Reshat.

-------------------------------------------------------------------------------------------
If you see my certificate with this message, you should be able to send me encrypted e-mail. 
Please consult your e-mail client for details if you would like to do that.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to