TC clustering uses GZIP(In|Out)putStream in replication. I don't know, if there is buffering on top. Filip?

Rainer

Martin Schulz wrote:

OT: The following is advice to servlet developers rather than container developers.

For what it's worth, just be careful when you use GZIP(In|Out)putStream,
since the native code uses a mutex (for no good reason, imho), to prevent
garbage collection from interfering with the array being used. Bottleneck
where I didn't expect one.

In particular, never place a Object(In|Out)putStream directly on top of the
GZIP streams, always use a buffer stream between the two.
Reason is that the object stream reads/writes in very small chunks,
causing four system calls per chunk.

Or else interesting things are going to happen on larger SMP systems.

 Martin



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to