Re: RE: PHP 4.0 Bug #10299 Updated: CPU and Memory Spike

From: Date: Sun, 15 Apr 2001 05:13:13 +0000
Subject: Re: RE: PHP 4.0 Bug #10299 Updated: CPU and Memory Spike
Groups: php.dev 
Request: Send a blank email to php-dev+get-51592@lists.php.net to get a copy of this message
So, I am wondering what will cause the CPU and memory spike? As I said in my previous mesg, include a lot of files and keep reloading the page will get the CPU idle time to 0% and then the httpd process hang. -----Original Message----- From: Chris Adams To: Derek Leung Sent: 4/15/01 3:21 AM Subject: Re: [PHP-DEV] RE: PHP 4.0 Bug #10299 Updated: CPU and Memory Spike In php.dev, you wrote:
I did try the snap shot 4/14/2001 4.06dev, it didnt' solve the problem. If 256mb ram , dual 400mhz can only serve around 10 concurrent clients, this
is a MAJOR issue for PHP. I guess any web language like PERL, Cold fusion,
JSP, servlet can do a LOT more than this with the equipment I am using right
now.
You'd guess wrong. Cold Fusion and, to a lesser degree, Java can't deliver anywhere near the performance PHP does (benchmarks on projects I've done have had CF at anywhere from 25%-1000% slower than PHP depending on the operation), particularly in only 256MB. Whatever your problem is, it's not intrinsic to PHP. With a single 500Mhz processor and 320MB of RAM, I have no problem delivering 40-50 hits / second sustained with 50 simultaneous clients on pages which are doing MySQL queries, returning the results as XML and converting them into HTML with XSLT. For simple scripts, that heads north of 360 hits / second. Note that this is on an unoptimized development system. With a performance tuned apache, PHP and MySQL installation and the use of one of the PHP script caches, performance usually goes up by at least a factor 3 or so. Chris

« previous php.dev (#51592) next »