Slow File Serving on Windows 2003
If you are experiencing slower than expected file download times, and you are using Windows 2003 (which we do not recommend as a server platform) then try one of the following remedies:
- ensure that the cache settings for the DefaultServlet in webdefault.xml are set correctly for your environment. By default, the max size of any one file that Jetty will attempt to cache is around 10Mb, so if you are serving larger files, you should increase this value, and possibly the values of the max number of cached files and the max size of the cache as a whole. The default cache settings in webdefault.xml are:
- try modifying the size of the response content buffer. By default, this is set to 24k, but can be modified on the SelectChannelConnector:
Our test results show - counter-intuitively - that a smaller buffer size may lead to faster download, with the optimum at 512 bytes :
- try using the blocking SocketConnector instead of the SelectChannelConnector, but be aware that this will not scale if you are also handling comet traffic.