tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik - Dev" <devli...@hanik.com>
Subject Re: Any synchronization issues with SMP?
Date Fri, 02 Jul 2004 13:10:04 GMT
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" <tomcat-dev@kippdata.de>
To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
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: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message