Re: PHP 4.0 Bug #8446: PHP/apache process is in infinite loop or appears to suck CPU
| From: | Rasmus Lerdorf | Date: | Thu, 28 Dec 2000 01:37:59 +0000 |
| Subject: | Re: PHP 4.0 Bug #8446: PHP/apache process is in infinite loop or appears to suck CPU | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42345@lists.php.net to get a copy of this message | ||
We cannot possibly track this down for you based on this. You will need
to attach gdb to one of these looped processes and see where it is
looping.
-Rasmus
On 28 Dec 2000 michael@audiogalaxy.com wrote:
> From: michael@audiogalaxy.com
> Operating system: RH 7.0 and RH 6.2 Any kernel 2.2.x
> PHP version: 4.0.4
> PHP Bug Type: *General Issues
> Bug description: PHP/apache process is in infinite loop or appears to suck CPU
>
> Below is a report from top for a SMP machine. This happens to all of our webservers every day
> or so a few machine have one two httpd processes eating CPU. This same problem also happens on the
> last two or more previous versions of php.
>
> A simple kill -9 pid removes it w/o killing the whole webserver. Below are the apache and
> httpd configuration lines:
>
> ./configure --with-mysql --enable-track-vars --with-zlib --with-apache=$apachedir
> --with-gd=$gddir --with-jpeg-dir=$gddir --with-config-file-path=/common/globalconfig/php
> --enable-memory-limit
>
> ./configure --with-layout=production --activate-module=src/modules/php4/libphp4.a
>
> An interesting aspect that is amount of memory each processing using 100% CPU is around 50megs.
> We have the memory limit set in php as 30M.
>
> 1 processes: 85 sleeping, 6 running, 0 zombie, 0 stopped
> CPU0 states: 70.0% user, 4.0% system, 0.0% nice, 25.0% idle
> CPU1 states: 53.0% user, 4.0% system, 0.0% nice, 41.0% idle
> Mem: 1036464K av, 1006188K used, 30276K free, 149244K shrd, 32068K buff
> Swap: 136512K av, 1124K used, 135388K free 677272K cached
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
> 7763 nobody 9 0 53808 52M 2172 R 99.9 5.1 1527m httpd
> 6825 nobody 0 0 4320 4320 2272 S 9.2 0.4 0:00 httpd
> 6779 nobody 0 0 4912 4912 2276 S 6.4 0.4 0:00 httpd
> 6830 root 4 0 1036 1036 812 R 6.4 0.0 0:00 top
>
>
> Thanks for your help - this has been a real nagging problem for us that we keep thinking is
> resolved in the next version.
>
>
> --
> Edit Bug report at: http://bugs.php.net/?id=8446&edit=1
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>