tags:

views:

176

answers:

2

Hello,

I have been using Apache on my local LAN. The problem is that i recently installed APC (along with PHP5-dev and apache2-dev). Now the response time of Apache has reduced. It roughly takes 2 seconds to for a php page to load, where as earlier it took around 500ms. Although in firebug is shows the old response times.

Why is this so? How should i fix it?

Thank you very much.

Update Which server should I install incase I reinstall it? I want really blazing fast LAN response times from my server. I am planning ubuntu desktop 9.04. Or should I use ubuntu 8.04 server? or ubuntu 9.04 server?

A: 

Do you know it's a server issue? I'd try on a fresh install of an OS or at least a browser, if you use firefox you could possibly have an addin interacting badly with your site. Check out the client side first before assuming it's Apache. Second APC may be the problem. SInce the site's on your lan it's probably low traffic. APC might be spending time cashing the code but have to recash it every time the PHP page is loaded since traffic is so light.

Jared
I disabled APC, now I still getting those slow speeds. It was working fine till I installed apache2-dev apc etc. using this guide: http://www.blogovela.com/installing-apc-on-ubuntu-804-hardy-heron-0314.html
Alec Smart
A: 

This sounds like some very high memory usage for each time PHP starts. Check top in bash while you open a page.

Ólafur Waage
top shows 1.0 and apache shows 1.0
Alec Smart