Jason Porter wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I took some freelance work to improve the speed of a site. I've done
all of the things that I could think of, improve the includes in the php
code (instead of doing url includes to the same site), configure
mod_expires, mod_deflate (site is on apache2 (2.0.52)), I've even gone
so far as to install eaccelerator thinking maybe it was PHP stuff.
Sometimes the site loads really fast, other times it takes 20 seconds to
load up the site. PHP is running in CGI mode, which may have something
to do with it (php 4.3.9 BTW).
Box is a coloc box running RHEL ES 4. There's hardly any server load on
it, top shows it typically staying around 5% or less on the CPU load.
He has 60ish sites setup as virtual hosts and they each have a few
mod_rewrite rules, but this really shouldn't be much of a problem.
Anyone have experience in tweaking apache or troubleshooting slow sites?
~ I'm currently at a brick wall, I have no idea what to look at next.
- --
When it comes to performance I never touch the code until I've profiled
it. Too often, you make all kinds of code modifications trying to
optimize it when the problem is some rogue loop somewhere.
I normally run the xdebug profiler and view the output on kcachegrind or
wincachegrind. It should tell you exactly where the problem is.
Alvaro
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net