From: <mpc...@li...> - 2003-05-22 17:17:00
|
If an external applications hold the connection open the non-blocking IO library will return immediately with 0 bytes on a read() therefore the si= ngle thread is free to continue processing other requests. >-- Original Message -- >From: Alexander Mueller <al...@gm...> >To: ins...@li... >Subject: Re: [insomnia-httpd-devel] Performance >Reply-To: ins...@li... >Date: Thu, 22 May 2003 17:37:46 +0200 (MEST) > > >> I've been looking at insomnia today as I was working a bit on the rang= e > responses. > > Has anyone considered the Java 1.4 NIO library? Under heavy load a > single threaded multiplexing Non-Blocking Server should perform > significantly fas >er than one that is context switching between Threads > like Apache. > > Also the memory overhead and thread startup costs could be massively > reduced. > > Matt. Hello Matthew, I did not work with NIO yet, so I cannot say much about it > However I wonder how a single threaded non-blocking version should work as we would need to cycle constantly through all open connections to see whether there is any= data and after receiving a full (and cached) request we would need to generate= th > output. However what would we do with external applications holding the= connection open? Did I missunderstand anything? Thanks, Alexander -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l=E4cheln! Fotogalerie online mit GMX >hne eigene Homepage! ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Che >k out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ insomnia-httpd-devel mailing list ins...@li... https://lists.sourceforge.net/lis >s/listinfo/insomnia-httpd-devel |