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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to