dev@glassfish.java.net

Re: Grizzly patch.

From: Carla Mott <Carla.Mott_at_Sun.COM>
Date: Thu, 14 Jul 2005 14:57:56 -0700

Hi Vicenc,

I have not seen a reply to your email about this patch. Unfortunately
(or fortunately depending on your perspective) most of us were on vacation
last week and are just now catching up. We have not forgotten and will
start discussions next week.

Thanks for taking the time to submit the patch. Talk to you next week.

Carla

Vicenc Beltran Querol wrote:
> Hi,
>
> attached you'll find a patch for Grizzly, that changes the coyote multithreading
> model to a "hybrid" threading model (NIO+Mulithread). It's fully
> compatible with the existing Catalina code and is SSL enabled.
>
> Like Grizzly, the Hybrid model breaks the limitation of one thread per connection,
> thus you can have a higher number of concurrent users with a lower number of threads.
> NIO selectors are utilized to detect when a user connection becomes active
> ( i.e. there is a user http request available to be read), and then, one thread
> processes the connection as usual, but without blocking on the read() operation
> because we know that there is one available request.
>
>
> The Hybrid model eliminates the need to close inactive connections (especially
> important under high load or SSL load) and reduces the number of necessary threads.
>
> The major difference between Grizzly and Hybrid approaches is that Grizzly does
> the read of the request in non-blocking mode so it can deal with lot of large uploads,
> but the Hybrid supports SSL connections.
>
>
>
> To enable the hybrid implementation add the following "jvm-option":
>
> ./glassfish/domains/domain1/config/domain.xml
> <java-config ...
> ...
> <jvm-options>-Dcom.sun.enterprise.web.connector.useHybridConnector=true</jvm-options>
> ...
> </java-config>
>
>
> Best Regards,
>
> Vicenç Beltran
>
> eDragon Research Group
> Barcelona Supercomputing Center (BSC)
> http://www.bsc.es/edragon
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net

-- 
Carla Mott
Sun Microsystems		
carla.mott_at_sun.com