Re: Scripts taking too much time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, September 18, 2006 11:54 am, Chris wrote:
> I'm hoping somebody can give me advice on how I can go about debugging
> a
> problem I've been having. The bottom of this email has some of the
> details of my system.
>
> There is an intermittent slowness throughout my site. At seemingly
> random points in random scripts at random times it just seems to wait.
>
> A few of these have been as long as 600 seconds, just sitting there,
> apparently doing nothing. I've tried tracking down the problem using
> microtime(), that jsut showed me how (mostly) random it was. The least
> complex area in which I was able to isolate a problem was a 15 line
> chunk of HTML, with some <?=MY_CONSTANT?> in them.

Are you running any of the cache programs such as APC/Turck/Zend Cache?

Or the Zend Optimizer?

Try disabling those and re-running the tests, just to be certain it's
not the cache acting up.

I'd also suggest trying some other tools to monitor the activities --
just in principle, to be certain that the monitors themselves are
accurate.  I have no particular package in mind -- Just that two heads
are better than one when trying to view what's happening at that level
of detail.

> My site has a decent amount of includes, it's probably doing 30-40
> includes per request, with an occasional require or two.

Just in general, I'd suggest that 30-40 includes per request is a bit
excessive...

Can none of them be combined?

I *believe* the big "hit" for an include is in the disk seek, not
reading and parsing some bits of PHP code.

This is not likely to be at all related to your current issue -- just
a general observation.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux