Clustering is using GZIP byte only with byte array, so it doesnt link to an actual stream, only a byte array stream. Don't think we have a problem Houston! :)
Filip ----- Original Message ----- From: "Rainer Jung" <[EMAIL PROTECTED]> To: "Tomcat Developers List" <[EMAIL PROTECTED]> Sent: Friday, July 02, 2004 3:59 AM Subject: Re: Any synchronization issues with SMP? > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]