From: kkolinko
Date: Mon, 17 Jan 2011 11:55:58 +0000 (+0000)
Subject: Document the conflict between compression and sendfile,
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0603a1dfaef8340f00d5cb0420894f9dc2d72992;p=tomcat7.0
Document the conflict between compression and sendfile,
as was discussed on users@
http://markmail.org/thread/bp46zusxjsqqxydr
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059897 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml
index 4f819c5e0..55ea85a96 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -288,6 +288,18 @@
the content-length is not known and compression is set to "on" or more
aggressive, the output will also be compressed. If not specified, this
attribute is set to "off".
+ Note: There is a tradeoff between using compression (saving
+ your bandwidth) and using the sendfile feature (saving your CPU cycles).
+ If the connector supports the sendfile feature, e.g. the NIO connector,
+ using sendfile will take precedence over compression. The symptoms will
+ be that static files greater that 48 Kb will be sent uncompressed.
+ You can turn off sendfile by setting useSendfile attribute
+ of the connector, as documented below, or change the sendfile usage
+ threshold in the configuration of the
+ DefaultServlet in the default
+ conf/web.xml or in the web.xml of your web
+ application.
+