Tomcat Gzip Compression

Enable tomcat gzip compression in you application server can improve performance by reducing network load for some resources.

Edit file /conf/server.xml and add to the HTTP Connector configuration something like this:

noCompressionUserAgents="gozilla, traviata"

compressionMinSize: If a file is too small, the overhead of compressing it may take longer than sending it uncompressed. You can define a minimum size for which a compression should not be done.


Popular posts from this blog

Reduce TIME_WAIT Socket Connections