Bug #14333 Updated: Apache processes consume all CPU
| From: | yohgaki@php.net | Date: | Thu, 13 Dec 2001 00:40:22 +0000 |
| Subject: | Bug #14333 Updated: Apache processes consume all CPU | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73438@lists.php.net to get a copy of this message | ||
ID: 14333
Updated by: yohgaki
Reported By: tauren@servlets.net
Status: Feedback
Bug Type: Apache related
Operating System: RH 6.2 SMP
PHP Version: 4.0.6
New Comment:
I also suggest to check RedHat resources to see if there is any known problems with their SMP
kernel. There are issues like this for SMP kernel occasionally.
Previous Comments:
------------------------------------------------------------------------
[2001-12-12 09:12:31] sniper@php.net
Like I asked before, configure/compile PHP without ANY configure
options. (only --with-apxs)
And updating kernel (and compiling it by yourself) is not bad idea either.
------------------------------------------------------------------------
[2001-12-08 19:34:26] tauren@servlets.net
This time I compiled PHP with this configuration:
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local \
--with-apache=/root/atb/Apachetoolbox-1.5.45/apache_1.3.22 \
--enable-exif \
--enable-track-vars \
--with-calendar=shared \
--enable-safe-mode \
--enable-magic-quotes \
--enable-trans-sid \
--enable-wddx \
--enable-ftp \
--without-mysql \
--without-ldap \
Apache was just the same as before. However, I am still getting the same runaway process problem.
Any other ideas or suggestions for me to try?
------------------------------------------------------------------------
[2001-12-08 19:19:42] tauren@servlets.net
Thanks for the help. I've installed the MySQL-shared RPM and now have
/usr/lib/libmysqlclient.so.
Also, I've recompiled with a minimal PHP configuration:
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local \
--with-apache=/root/atb/Apachetoolbox-1.5.45/apache_1.3.22 \
--enable-exif \
--enable-track-vars \
--with-calendar=shared \
--enable-safe-mode \
--enable-magic-quotes \
--enable-trans-sid \
--enable-wddx \
--enable-ftp \
--with-mysql=/usr \
--with-ldap \
My Apache configuration is also very minimal. The only things I have included are the basics plus
mod_ssl and mod_php:
export CFLAGS=""
export LIBS=""
export INCLUDES=""
./configure --prefix=/usr/local/apache \
--enable-suexec \
--suexec-caller=nobody \
--suexec-docroot=/home \
--suexec-logfile=/var/log/httpd/cgi.log \
--suexec-uidmin=500 \
--suexec-gidmin=500 \
--suexec-safepath=/usr/local/bin:/usr/bin:/bin \
--enable-module=so \
--enable-module=access \
--disable-module=auth_db \
--disable-module=digest \
--enable-module=imap \
--enable-module=mime \
--enable-module=setenvif \
--disable-module=usertrack \
--enable-module=auth \
--disable-module=cern_meta \
--disable-module=expires \
--enable-module=log_config \
--disable-module=proxy \
--disable-module=vhost_alias \
--disable-module=auth_anon \
--enable-module=cgi \
--disable-module=headers \
--disable-module=log_referer \
--disable-module=rewrite \
--enable-module=userdir \
--enable-module=asis \
--enable-module=autoindex \
--disable-module=example \
--disable-module=log_agent \
--enable-module=negotiation \
--enable-module=status \
--enable-module=actions \
--disable-module=auth_dbm \
--enable-module=dir \
--enable-module=include \
--disable-module=mime_magic \
--disable-module=unique_id \
--enable-module=alias \
--disable-module=auth_digest \
--enable-module=env \
--disable-module=info \
--disable-module=mmap_static \
--disable-module=speling \
--enable-module=ssl \
--activate-module=src/modules/php4/libphp4.a \
However, as within a minute of installing and running this Apache, I start getting runaway httpd
processes (94% CPU usage).
It doesn't look like the libmysqlclient.so is the issue. I'm going to try installing with
the --without-mysql option to see if that makes a difference.
------------------------------------------------------------------------
[2001-12-08 10:14:24] derick@php.net
The RPm is called MySQL-shared BTW.
------------------------------------------------------------------------
[2001-12-08 10:12:49] sniper@php.net
What would help us to narrow down the possible places where
this bug might be is that you build PHP with minimal amount of
extensions ie. remove all the options and leave only the apache
option there.
--Jani
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14333
Edit this bug report at http://bugs.php.net/?id=14333&edit=1