Bug #10299: CPU and Memory Spike
| From: | goten at mylaptop dot com | Date: | Wed, 11 Apr 2001 22:04:00 +0000 |
| Subject: | Bug #10299: CPU and Memory Spike | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51476@lists.php.net to get a copy of this message | ||
From: goten@mylaptop.com
Operating system: FreeBSD 4.2 Stable
PHP version: 4.0.4pl1
PHP Bug Type: Performance problem
Bug description: CPU and Memory Spike
I am running on FreeBSD 4.2 Stable, Apache 1.3.19 + PHP 4.0.4pl1 + Modssl on a Dual P2 400mhz with
256mb ram. From time to time, one of the httpd process will eat up all the CPU time and memory, and
after around 5 to 10 seconds, it goes back to normal Even a Very simple script like
<?
echo "test";
?>
can make it happen. 1 out of 25 reload of the above script can make the spike happen. But the web
server do not crash though. If I run on a script with heavy database access, it happen 1 out of 10
if I press reload button continously.
BTW, is that normal for Apache to take up 30% of the CPU time to excute one single
PHP-database-driven page?
I search the bugs database and I found another user have the exact problem like what I am having
right now. His bug id is #9154.
This is how I configure PHP
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/etc --enable-track-vars --enable-ftp --with-gd=/usr/local
--with-pcre-regex=/usr/local/
--with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6
With or Without modssl enable does not make a difference. Both can cause the spike.
--
Edit Bug report at: http://bugs.php.net/?id=10299&edit=1