users@grizzly.java.net

Re: Scalability requirement

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 26 Aug 2008 14:47:35 -0400

Salut,

Ian Hunter wrote:
> Hi Folks,
>
> Grizzly seems great, but I *think* it can't handle my requirement. Can somebody confirm this please...
>
> I need to build a test system consisting of 1000+ simulators on a single machine using UDP (2 ports per simulator). I cant have a thread pool per Controller, as I understand how grizzly works; I need a single thread to service many ports at the same time.
>
> Is this possible?

Yes it should. You can share a thread pool amongst Controller by
invoking the

Controller.setPipeline();

But an alternative would consist of adding/creating 2 UDPSelectorHandler
(one per port). That way the default thread pool (Pipeline) will be
shared amongst SelectorHandler.

Have I missed something?

Does it help?

Thanks

-- Jeanfrancois


>
> Many Thanks for any help.
>
> Ian Hunter
>
>
> _________________________________________________________________
> Win New York holidays with Kellogg’s & Live Search
> http://clk.atdmt.com/UKM/go/107571440/direct/01/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>