Summary: | Javadoc change for NIO compression and NIO sendfile | ||
---|---|---|---|
Product: | Tomcat 8 | Reporter: | Martin Gainty <mgainty> |
Component: | Documentation | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0.x-trunk | ||
Target Milestone: | ---- | ||
Hardware: | PC | ||
OS: | All |
Description
Martin Gainty
2014-05-12 12:11:51 UTC
(In reply to Martin Gainty from comment #0) > Needs to state: > > NIO works with either sendfile OR compression > NIO with Sendfile: > > NIO with Compression: > > http://tomcat.apache.org/tomcat-7.0-doc/config/http. > html#NIO_specific_configuration states Also for the APR connector. > (with regards to compression) > 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. > > Needs to say: > > NIO works with sendfile feature OR compression > NIO with Sendfile: > > NIO with Compression: Seems reasonable. Care to submit a documentation patch? Fixed for 8.0.6 onwards. |