Documentation search for tomcat7 I can not find the link to compressionMaxSize. The only command like this is compressionMinSizeone that is designed to filter the compression of any file smaller than a specific value. For instance:
compressionMinSize="2048"
Here is what my server.xml looks like with regard to compression:
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
There is actually a hidden piece of documentation related to this that explains your experience:
. ( ) sendfile ( ). sendfile, . NIO, sendfile . , , 48 uncompressed. sendfile, useSendfile , , sendfile DefaultServlet conf/web.xml web.xml -.
, , , web.xml(, ):
<init-param>
<param-name>sendfileSize</param-name>
<param-value>96</param-value>
</init-param>
source
share