users@grizzly.java.net

Re: Strange grizzly behaviour...

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 12 Feb 2008 17:19:58 -0500

Hi Erick,

Erik Svensson wrote:
> Howdy all,
>
> I'm now running tests with Grizzly as a server using our own ProtocolParser.
> Right now I have a client that connects to Grizzly, sends 10k messages,
> waits about 10 seconds and then disconnects.
> Problem is that my protocol parser only gets about 120 (the number varies
> between runs) messages. If I fire up the client again the protocol parser
> only receives a handful of messages.
> I have no idea where the rest of the data is going. Using the yourkit
> profiler I can't see anything strange at all.

Do you have any test case we can take a look at? Are you sure your are
registering back the SelectionKey after reading bytes (stupid question,
but guessing).


>
> I'm running java 1.5.0-13 on a MacBookPro with 3 GB ram and Mac OS X
> 10.4.11. RUnning both client and server on the same machine.

Same setup :-)

Thanks!

-- Jeanfrancois


>
> cheers
> Erik Svensson, SIX AB
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>