Jump to content

Debugging slow sites?


WebMonkey27

Recommended Posts

 

Hi

 

In my new job I have inherited quite a large and complex (an in a few places badly written) PHP & MySQL website. It also handles a lot more traffic than I have been used to in my other jobs.

 

The problem I have now is chasing down performance bottlenecks and slow queries, and other glitches that cause the site to hang, be unavailable or have weird load average / memory usage spikes on the webservers and the mysql servers

 

I was wondering what other people use for sniffing out these problems, I was thinking about Zend platform, but that is looking like it might be too expensive (we are mostly advertisement funded, so margins are low despite high traffic)

 

thanks

Monkey

Link to comment
Share on other sites

  • 2 months later...

this is on my list, as for php i'm not so sure but i've been looking into bcompiler for faster loading times for large sections of code.

 

I read something somewhere about mysql benchmarking, but it wasn't just running the standard benchmark, however i can't remember what it was called. But i've just been looking into this: http://dev.mysql.com/doc/refman/5.1/en/log-files.html, and am considering the general query log. If need be i'll write a script that'll use wget every minute to call each page individually so that i can pigeon hole the results (no request should take longer than 1 min!). Hope this helps...

 

Oh for php, if you do some dfd's and sort of identify the big blocks you could then setup your own benchmarking echoing microtime() string's (http://uk3.php.net/manual/en/function.microtime.php).

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.