php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11444 PHP puts heavy load on apaches httpd
Submitted: 2001-06-12 16:40 UTC Modified: 2001-06-27 22:40 UTC
From: martin at bugs dot unl dot edu dot ar Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.5 OS: Solaris 7
Private report: No CVE-ID: None
 [2001-06-12 16:40 UTC] martin at bugs dot unl dot edu dot ar
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-12 18:51 UTC] sniper@php.net
So what is the real problem? Does the machine really get 
slow and sluggish? Any errors? Out of memory?
Just one listing of one millisecond situation doesn't
tell ANYTHING. 

And what were the configure options used? Is PHP compiled
into Apache as DSO or static module?


--Jani

 [2001-06-27 22:40 UTC] sniper@php.net
There has been some memory issues solved in PHP 4.0.6.
Please try it out and reopen if this still happens.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC