I wouldn't compress anything less than a packet.  A good minimum packet size is
576 bytes, so call it 512 to account for headers and to make it even.
I'd still use Apache and mod_gzip/mod_deflate as that will make caching proxies
much happier.

Rick DeBay

On Wed, 25 Feb 2004 09:57 , Jerry Jalenak <[EMAIL PROTECTED]> sent:

>Kris - Thanks.  So what's a reasonable setting?  The example has the
>threshold set to 10; is this OK for most web apps? 
>
>
>
>Jerry Jalenak
>Development Manager, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>> -----Original Message-----
>> From: Kris Schneider [EMAIL PROTECTED]','','','')">[EMAIL PROTECTED]
>> Sent: Wednesday, February 25, 2004 9:42 AM
>> To: Struts Users Mailing List
>> Subject: RE: Tomcat 4 Compression Filter
>> 
>> 
>> Essentially, the "compressionThreshold" filter init param is 
>> a buffer size for
>> CompressionResponseStream. If it's 0, then compression is 
>> turned off (this is
>> handled by the filter, not the stream). Otherwise, it's the max of 128
>> (hard-coded min) and whatever is set in web.xml. The stream 
>> works by buffering
>> up bytes and periodically flushing them to a GZIPOutputStream 
>> that wraps the
>> response's ouput stream.
>> 
>> Quoting Jerry Jalenak [EMAIL PROTECTED]>:
>> 
>> > I've also been playing around with this with mixed results. 
>>  I've been
>> > looking for some doc on the filter mainly to better understand the
>> > 'compressThreshold' setting.  Does anyone have any doc for 
>> this thing?
>> > 
>> > Jerry Jalenak
>> > Development Manager, Web Publishing
>> > LabOne, Inc.
>> > 10101 Renner Blvd.
>> > Lenexa, KS  66219
>> > (913) 577-1496
>> > 
>> > [EMAIL PROTECTED]
>> > 
>> > 
>> > > -----Original Message-----
>> > > From: Niall Pemberton
[EMAIL PROTECTED]','','','')">[EMAIL PROTECTED]
>> > > Sent: Wednesday, February 25, 2004 6:13 AM
>> > > To: Struts User Jakarta
>> > > Subject: Tomcat 4 Compression Filter
>> > > 
>> > > 
>> > > There is a CompressionFilter class shipped with with Tomcat 
>> > > which compresses the ServletResponse that I'm considering 
>> > > using (we have some remote offices which have slow links):
>> > > 
>> > > http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/e
>> > > xamples/WEB-INF/classes/compressionFilters/CompressionFilter.j
>> > > ava?rev=1.8&view=auto
>> > > 
>> > > It looks OK to me and seems to work fine when I plug it 
>> into my app.
>> > > 
>> > > I'm a bit concerned that its only an "example" class rather 
>> > > than standard feature of Tomcat. 
>> > > 
>> > > Has anyone used this in a 'live' environment and if so are 
>> > > there any issues or with it or recommendations?
>> > > 
>> > > Does anyone have any alternatives that they have deployed?
>> > > 
>> > > Niall
>> 
>> -- 
>> Kris Schneider [EMAIL PROTECTED]','','','')">[EMAIL PROTECTED]>
>> D.O.Tech       http://www.dotech.com/>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>
>This transmission (and any information attached to it) may be confidential and
>is intended solely for the use of the individual or entity to which it is
>addressed. If you are not the intended recipient or the person responsible for
>delivering the transmission to the intended recipient, be advised that you
>have received this transmission in error and that any use, dissemination,
>forwarding, printing, or copying of this information is strictly prohibited.
>If you have received this transmission in error, please immediately notify
>LabOne at the following email address: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>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]

Reply via email to