Client performance: enabling KeepAlive

Июнь 10, 2011

The Keep-Alive extension to HTTP/1.0 and the persistent connection feature of HTTP/1.1 provide long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection. In some cases this has been shown to result in an almost 50% speedup in latency times for HTML documents with many images. (source)

Apache configuration:


KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout  5

Before KeepAlive:

http://gdestop.ru:

gdestop

http://gdestop.ru/adler:

adler

http://gdestop.ru/anapa/view/492:

hotel

Before KeepAlive:

http://gdestop.ru:

gdestop

http://gdestop.ru/adler:

adler

http://gdestop.ru/anapa/view/492:

hotel

For some pages enabling KeepAlive worked out better fot some worse, but generally it’s recommended to enable KeepAlive. My additional advice is to monitor server’s resource usage after each reconfiguration.

  • gdestop
  • adler
  • hotel

tags: ,
posted in Optimization by dmitko

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org