users@grizzly.java.net

Re: Streaming comet buffer

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 06 May 2009 19:24:00 -0400

Salut,

Richard Corsale wrote:
> Quick question,
>
> if I send 7k characters up a stream (streaming comet), does Grizzly accrue an additional 7kb memory foot print?

Yes, by default it will buffer the data unless you explicitly flush it.
The idea here is to limit the number of I/O operations by buffering the
data if possible. But since you want to stream, the buffer will always
be flushed so no data in memory.

Does that help?

A+

-- Jeanfrancois

>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>