Re: Command-line PHP script CPU usage goes sky-high, stays there--why?
| From: | Per Jessen | Date: | Tue, 11 Dec 2007 21:13:50 +0000 |
| Subject: | Re: Command-line PHP script CPU usage goes sky-high, stays there--why? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265715@lists.php.net to get a copy of this message | ||
René Fournier wrote:
> However, the number of socket clients connecting in the past 3-4
> months has steadily increased, and this seems to have exposed (if not
> created) a strange performance "issue" with PHP 5.2.4, MySQL 5.0.45
> and/or Mac OS X Server 10.4.11. (I say "and/or" because I am unsure
> where the problem's cause really lies.) Basically, after the script
> has been running for a day or so (processing essentially the amount
> data that used to take two weeks), the CPU usage of the machine goes
> from 30% (normal) to 80-90%.
Have you tried stracing it to see what's really happening when the load
goes that high?
/Per Jessen, Zürich