[PHP] How to get cpu consumption of a php script

2011-01-17 Thread Tanoor Dieng
Hi everybody, I'm a php developper for a high traffic website. Our web servers run with lightty? We have some issues with the cpu consumption of our servers. The problem is that, we don't know exactly which script consumes so much cpu. So, we cant to figure out how much cpu does a php script

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread a...@ashleysheridan.co.uk
their own pid (i believe, but not tested this) that let's you track them more easily. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Tanoor Dieng newstan...@gmail.com Date: Mon, Jan 17, 2011 10:23 Subject: [PHP] How to get cpu consumption of a php script To: php-general

RE: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Tommy Pham
-Original Message- From: a...@ashleysheridan.co.uk [mailto:a...@ashleysheridan.co.uk] Sent: Monday, January 17, 2011 2:36 AM To: Tanoor Dieng; php-general@lists.php.net Subject: Re: [PHP] How to get cpu consumption of a php script I can't think of anything except using top or ps

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/17/2011 11:23 AM, Tanoor Dieng wrote: Hi everybody, I'm a php developper for a high traffic website. Our web servers run with lightty? We have some issues with the cpu consumption of our servers. The problem is that, we don't know

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Camilo Sperberg
Please take into account that lighttpd does have some random high cpu-consumption problems, it could be that also. Give nginx a try instead. Also: microtime by itself isn't enough, sum time() to it because if a script lasts more than 1 second you can end up with negative total time, microtime

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Tanoor Dieng
Hi thanks, for xdebug, we'll take al look at it. On Mon, Jan 17, 2011 at 11:51 AM, Thijs Lensselink d...@lenss.nl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/17/2011 11:23 AM, Tanoor Dieng wrote: Hi everybody, I'm a php developper for a high traffic website. Our web

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Richard Quadling
On 17 January 2011 10:58, Camilo Sperberg unrea...@gmail.com wrote: Please take into account that lighttpd does have some random high cpu-consumption problems, it could be that also. Give nginx a try instead. Also: microtime by itself isn't enough, sum time() to it because if a script lasts