Quick Tip #5 – Increase Web Server Performance!

  • Sumo

Imagine you have a complex website with full of images icons and elements. This means every visitor downloads number of images, javascripts, css files and icons for viewing single page on your website! And everything is fine untill the moment when you notice web server performance degradation.

As I already mentioned in the previous article about website optimization, you need a thorough analysis each time you face performance problems. Because you can start MySQL optimization, PHP Code optimization or something else, and in the end find out that the only serious problem you have is in NUMBER OF FILES each visitor downloads to view your web page!

Common problem for all websites. But how to deal with it?

I see two solutions. One impossible and one possible but expensive.

1. Reduce number of images, icons, css, javascripts
This is nearly impossible, because for established website this means changes in design layout and sacrificing content for the sake of performance.

2. Use KeepAlive Apache setting
Keep-Alive enables persistent connection and provides long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection.
As Apache server documentation says for some cases this showed almost 50% speedup in latency times for HTML documents with many images.

Quick Tip #5

Use KeepAlive Apache directive to speedup page load!

But! There is one But! You can set this Apache server configuration only on dedicated servers not in shared hosting! I personally use dedicated servers from There I have full control over my websites and Apache configuration files.
Open vhost configuration file and put two lines under the host for which you want to enable KeepAlive.

KeepAlive On
KeepAliveTimeout 15

Read all quick tips. Stay tuned! And come back for another quick tip! You can subscribe to new posts by RSS feed or email subscription.

About the Author

Edgar Marukyan is an expert of website development and performance optimization, who maintains and consults clients with high load traffic websites.. If you need an assistance, feel free to drop me a line.         Website - Twitter - Facebook

Comments (1)

Trackback URL | Comments RSS Feed

  1. Allie says:

    Right oni-ths helped me sort things right out.

Leave a Reply

If you want a picture to show with your comment, go get a Gravatar.