Adding gzip compression to tomcat to improve speed.
Gzipping can result in a significant speed improvement in downloading of files from the tomcat server and is easily enabled in tomcat. When the client (browser) makes a http request it tells the server if it has the ability to deflate. If so the server can gzip files such as xml, css and javascript before they are sent to the client. Significant speed increases are seen in the OpenVPMS web application especially when served from a remote server.
To enable this feature edit the connector in tomcat's server.xml file and add the compression settings as below:
Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="xxxx" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" useBodyEncodingForURI="true"
compressableMimeType="text/html,text/xml,text/css,text/javascript,text/plain" compression="on"
compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" />
If you are using firefox you can use the Yslow plugin to check if gzipping is enabled or not. Yslow can also be used to tell you the speed prior to and following enabling compression.
- Printer-friendly version
- Login or register to post comments
Book Navigation
- Features
- Users Handbook
- 1.5 User Handbook Contents
- OpenVPMS FAQ
- Various Other Pages
- Editing Lists
- Adding New Users
- Business Continuity Plan Outline
- Create a New Appointment for a New Customer
- Creating And Using Macros
- Document merging with Open Office Writer
- Elements
- Glossary
- How to make it easier to see where the cursor is
- How to use a Report downloaded from the Community: Shared Resources Area
- Introduction to the web application
- Inventory pricing
- Product Dispensing fee
- Searching a patient by microchip number
- The Application Tree
- The customer module
- User Guide
- Video tutorials
- Developer's Handbook
- Implementors Handbook
- Installation Documentation
- Tweaks and customisation
- Upgrade Documentation
- 1.5 Release Implementation Guide



