Re: [PHP] Scripts taking too much time
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 18 Sep 2006 14:03:36 -0500 (CDT)
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
.
- Follow-Ups:
- Re: [PHP] Scripts taking too much time
- From: Chris
- Re: [PHP] Scripts taking too much time
- References:
- Scripts taking too much time
- From: Chris
- Scripts taking too much time
- Prev by Date: Re: [PHP] My apologies
- Next by Date: Re: [PHP] How to parse raw mail headers and messages?
- Previous by thread: Re: [PHP] Scripts taking too much time
- Next by thread: Re: [PHP] Scripts taking too much time
- Index(es):
Relevant Pages
|