Re: Command-line PHP script CPU usage goes sky-high, stays there--why?
| From: | Per Jessen | Date: | Wed, 12 Dec 2007 09:42:50 +0000 |
| Subject: | Re: Command-line PHP script CPU usage goes sky-high, stays there--why? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265745@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
>> Have you tried stracing it to see what's really happening when the
>> load goes that high?
>
> am I correct that that would be done like so?:
>
> strace -p <process id of php deamon>
Yep, that's it. You'll probably want to record the output for analysis,
but sometimes it's very obvious what's happening. Which doesn't mean
it's also easy to fix, but it could give you a clue.
/Per Jessen, Zürich