Bug #11444: PHP puts heavy load on apaches httpd
| From: | martin at bugs dot unl dot edu dot ar | Date: | Tue, 12 Jun 2001 20:40:07 +0000 |
| Subject: | Bug #11444: PHP puts heavy load on apaches httpd | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57162@lists.php.net to get a copy of this message | ||
From: martin@bugs.unl.edu.ar
Operating system: Solaris 7
PHP version: 4.0.5
PHP Bug Type: *Web Server problem
Bug description: PHP puts heavy load on apaches httpd
I had php-4.0.4pl1 on one of my Solaris machines (SPARC), and was programing on my personal
workstation (Solaris 8 on SPARC both) on PHP-4.0.6-dev (downloaded 2 days after the branch changed
from 5 to 6) and PHP worked great with apache.
When I had to pass the programs I had on my workstation, I said, lets update PHP to the 4.0.5
version, so there are no problems.
The problems appeared. When I started entering pages on the server where there php scripts the load
started growing. These are some outputs that I have after executing these scripts:
root@ultra31 /space/pruebas # w
5:30pm up 75 day(s), 23:32, 2 users, load average: 6.29, 5.13, 4.71
User tty login@ idle JCPU PCPU what
root pts/0 4:24pm 17:22 bash
postgres pts/3 4:53pm 37 -bash
root@ultra31 /space/pruebas # ps -ef -o pid,ppid,pcpu,pmem,ruser,comm | grep http
18344 18322 0.4 1.9 nobody /usr/local/apache/bin/httpd
18343 18322 0.0 1.1 nobody /usr/local/apache/bin/httpd
18342 18322 18.9 1.9 nobody /usr/local/apache/bin/httpd
18494 18322 0.1 1.5 nobody /usr/local/apache/bin/httpd
18324 18322 9.9 1.9 nobody /usr/local/apache/bin/httpd
5260 18322 0.1 0.9 nobody /usr/local/apache/bin/httpd
18326 18322 8.0 1.9 nobody /usr/local/apache/bin/httpd
18322 1 0.0 1.6 root /usr/local/apache/bin/httpd
18327 18322 0.4 1.9 nobody /usr/local/apache/bin/httpd
18323 18322 0.1 1.9 nobody /usr/local/apache/bin/httpd
18325 18322 18.6 1.9 nobody /usr/local/apache/bin/httpd
root@ultra31 /space/pruebas #
This also happened with a page that only has the phpinfo() function.
Saludos... :-)
Martin
--
Edit Bug report at: http://bugs.php.net/?id=11444&edit=1