You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gabor 'Morc' KORMOS <mo...@baxter-it.com> on 2009/02/17 12:28:59 UTC

Tomcat vs deflate

  Hi Guys/Gals,

  I tried to search for an answer whether Tomcat can support deflate as 
compression but I found nothing really except that it supports gzip by 
adding the compression parameter to the Connector definition. Is there a 
way to enable deflate besides/instead of gzip in any version of Tomcat 
(preferably recent ones, not 1.0 ;) ? If deflate is not supported then 
why not? Reason I need deflate is we use Adobe Air for an interface 
which receives a huge amount of XML data and it's not bandwidth 
economical to send it uncompressed and Air does not support gzip out of 
the box. Answers like use Apache instead of Tomcat as front-end web 
server can be spared.

  Thanks,

  Gabor 'Morc' Kormos.

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


Re: Tomcat vs deflate

Posted by Tim Funk <fu...@joedog.org>.
Sadly no. As I rethink the previous statement - I wonder how true it is. 
    For small self contained webapps - Tomcat is usually enough. But 
once you introduce clustering or use it as public face to the world, 
instead of a "internal app" - I would kind of expect apache to be out 
front to handle lots of the goofy issues that apache httpd is good at. 
(But now I venture into off topic my own opinion land .. and place where 
bad things usually happen)

-Tim

Peter Crowther wrote:
>> From: Tim Funk [mailto:funkman@joedog.org]
>> most people use apache in front of tomcat.
> 
> Tim, I'm interested - do you have any real-world usage figures?  I'm genuinely not trying to challenge your assertion; I'd just love to see the data, and how it's changed over time!
> 


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


RE: Tomcat vs deflate

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Tim Funk [mailto:funkman@joedog.org]
> most people use apache in front of tomcat.

Tim, I'm interested - do you have any real-world usage figures?  I'm genuinely not trying to challenge your assertion; I'd just love to see the data, and how it's changed over time!

                - Peter

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


Re: Tomcat vs deflate

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Morc,

On 2/17/2009 8:07 AM, Gabor 'Morc' KORMOS wrote:
>  So basically you say code it for yourself by modifying the HTTP connector?

Tomcat's existing gzip is implemented as an OutputFilter. You might want
to browse the source for that before you go messing around with the HTTP
connector. I'm not sure how the GzipOutputFilter hooks into the HTTP
response, though.

org/apache/coyote/http11/filters/GzipOutputFilter.java

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmcawEACgkQ9CaO5/Lv0PA7sQCaAgnaETbGhJ4A9xuUlpjOLcG+
hRsAn3wBPpiOZRKUJzaJULUAWBszhWqX
=mtTA
-----END PGP SIGNATURE-----

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


RE: Tomcat vs deflate

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gabor 'Morc' KORMOS [mailto:morc@baxter-it.com]
> Subject: Re: Tomcat vs deflate
>
> So basically you say code it for yourself by modifying the
> HTTP connector?

Preferably you'd write a filter to do it, rather than modifying Tomcat source.

Oh look, someone's already done it:
https://www.ohloh.net/tags/deflate/library/tomcat

GIYF.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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


Re: Tomcat vs deflate

Posted by Tim Funk <fu...@joedog.org>.
yup - and if your inclined - you can submit an bug enhancement with the 
patch

-Tim

Gabor 'Morc' KORMOS wrote:
>  So basically you say code it for yourself by modifying the HTTP connector?
> 
>  Morc.
> 
> On 17/02/2009 13:46, Tim Funk wrote:
>> There aren't really any docs to point to beyond 
>> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
>>
>> From there you can dig into the source. Since gzip and deflate are 
>> much the same - it might be relatively easy.
>>
>> -Tim
>>
>> Gabor 'Morc' KORMOS wrote:
>>>  Hi Tim,
>>>
>>>  Thanks for the speedy response. Can you point me in the direction of 
>>> some documentation which describes how to do it? I'm willing to read 
>>> just did not find what to read :)
>>>
>>>  Thanks,
>>>
>>>  Morc.
>>>
>>> On 17/02/2009 13:23, Tim Funk wrote:
>>>> Can support  - yes
>>>>
>>>> Out of the box - no.
>>>>
>>>> Why not out of the box? Because gzip is there and most people use 
>>>> apache in front of tomcat.


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


Re: Tomcat vs deflate

Posted by Gabor 'Morc' KORMOS <mo...@baxter-it.com>.
  So basically you say code it for yourself by modifying the HTTP connector?

  Morc.

On 17/02/2009 13:46, Tim Funk wrote:
> There aren't really any docs to point to beyond 
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
>
> From there you can dig into the source. Since gzip and deflate are 
> much the same - it might be relatively easy.
>
> -Tim
>
> Gabor 'Morc' KORMOS wrote:
>>  Hi Tim,
>>
>>  Thanks for the speedy response. Can you point me in the direction of 
>> some documentation which describes how to do it? I'm willing to read 
>> just did not find what to read :)
>>
>>  Thanks,
>>
>>  Morc.
>>
>> On 17/02/2009 13:23, Tim Funk wrote:
>>> Can support  - yes
>>>
>>> Out of the box - no.
>>>
>>> Why not out of the box? Because gzip is there and most people use 
>>> apache in front of tomcat.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: Tomcat vs deflate

Posted by Tim Funk <fu...@joedog.org>.
There aren't really any docs to point to beyond 
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

 From there you can dig into the source. Since gzip and deflate are much 
the same - it might be relatively easy.

-Tim

Gabor 'Morc' KORMOS wrote:
>  Hi Tim,
> 
>  Thanks for the speedy response. Can you point me in the direction of 
> some documentation which describes how to do it? I'm willing to read 
> just did not find what to read :)
> 
>  Thanks,
> 
>  Morc.
> 
> On 17/02/2009 13:23, Tim Funk wrote:
>> Can support  - yes
>>
>> Out of the box - no.
>>
>> Why not out of the box? Because gzip is there and most people use 
>> apache in front of tomcat.


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


Re: Tomcat vs deflate

Posted by Gabor 'Morc' KORMOS <mo...@baxter-it.com>.
  Hi Tim,

  Thanks for the speedy response. Can you point me in the direction of 
some documentation which describes how to do it? I'm willing to read 
just did not find what to read :)

  Thanks,

  Morc.

On 17/02/2009 13:23, Tim Funk wrote:
> Can support  - yes
>
> Out of the box - no.
>
> Why not out of the box? Because gzip is there and most people use 
> apache in front of tomcat.
>
> -Tim
>
> Gabor 'Morc' KORMOS wrote:
>>  Hi Guys/Gals,
>>
>>  I tried to search for an answer whether Tomcat can support deflate 
>> as compression but I found nothing really except that it supports 
>> gzip by adding the compression parameter to the Connector definition. 
>> Is there a way to enable deflate besides/instead of gzip in any 
>> version of Tomcat (preferably recent ones, not 1.0 ;) ? If deflate is 
>> not supported then why not? Reason I need deflate is we use Adobe Air 
>> for an interface which receives a huge amount of XML data and it's 
>> not bandwidth economical to send it uncompressed and Air does not 
>> support gzip out of the box. Answers like use Apache instead of 
>> Tomcat as front-end web server can be spared.

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


Re: Tomcat vs deflate

Posted by Tim Funk <fu...@joedog.org>.
Can support  - yes

Out of the box - no.

Why not out of the box? Because gzip is there and most people use apache 
in front of tomcat.

-Tim

Gabor 'Morc' KORMOS wrote:
>  Hi Guys/Gals,
> 
>  I tried to search for an answer whether Tomcat can support deflate as 
> compression but I found nothing really except that it supports gzip by 
> adding the compression parameter to the Connector definition. Is there a 
> way to enable deflate besides/instead of gzip in any version of Tomcat 
> (preferably recent ones, not 1.0 ;) ? If deflate is not supported then 
> why not? Reason I need deflate is we use Adobe Air for an interface 
> which receives a huge amount of XML data and it's not bandwidth 
> economical to send it uncompressed and Air does not support gzip out of 
> the box. Answers like use Apache instead of Tomcat as front-end web 
> server can be spared.


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