Apache on Ubuntu very slow on inital calls, very fast afterwards

Posted on

Apache on Ubuntu very slow on inital calls, very fast afterwards – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, apache-2.2, ubuntu, magento, .

I own an Ubuntu 10 VPS Server with Apache 2 hosting a Magento website. The first hit to the site from any client takes about 15-20 sec, while the subsequent hits from the same client take 0-1 sec. I suppose it doesn’t have to do with Magento caching, because this happens also when the first call is on a very light page and the next calls are on heavy ones.

Does anyone have an idea on what is going wrong here?

Solution :

If you have access directives like allow and order enabled apache will attempt to verify every ip that connects to it and also tries to resolve the clients ip address to hostname and results to the delay you just described.

Can you please check apache logs and make sure if apache is logging by ip address or hostname?

Leave a Reply

Your email address will not be published.