tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <tomcat-...@kippdata.de>
Subject Re: Any synchronization issues with SMP?
Date Fri, 02 Jul 2004 08:59:15 GMT
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


Mime
View raw message