#18523 [Com]: httpd Memory consumption with new PHP

From: Date: Sun, 28 Jul 2002 00:44:34 +0000
Subject: #18523 [Com]: httpd Memory consumption with new PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15429@lists.php.net to get a copy of this message
 ID:               18523
 Comment by:       msopacua@idg.nl
 Reported By:      tomki@alink.net
 Status:           Feedback
 Bug Type:         Apache related
 Operating System: BSDI 4.1
 PHP Version:      4.2.2
 New Comment:

I'm pretty sure this is a dupe of:
http://bugs.php.net/bug.php?id=14870

tomki: Can you strip the GD stuff?

Instead of SIGUSR1 use SIGHUP and tail the error log, looking for
"child [pid] still didn't exit" errors.

It's SOME dl issue with BSDi, but I still haven't figure it out
either.

As a side note: all this goes away when you compile as a static module.
If you're tight on memory, be sure to strip httpd manually after
install, saves a meg or so, depending on the modules of course.


Previous Comments:
------------------------------------------------------------------------

[2002-07-24 19:36:59] sniper@php.net

First try with ONLY --with-apxs option. And that works, then add the
options you had one by one and see after which one it starts to do
this. Also, try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

------------------------------------------------------------------------

[2002-07-24 01:57:14] tomki@alink.net

Apache 1.3.26 with mod_ssl is the webserver.  DSO support.
I have PHP 4.1.2 configured like so, which does not cause this memory
problem: './configure --with-mysql 
--with-apxs=/usr/local/web/apache/bin/apxs'

I currently have configured PHP 4.2.2 like so:
./configure --with-regex=php --enable-memory-limit
--with-mysql=/usr/local/mysql --with-imap=../imap-2002.RC2
--with-imap-ssl --with-ttf --with-gd --enable-ftp --with-bz2=/usr
--with-zlib --with-openssl --with-apxs=/usr/local/web/apache/bin/apxs
--with-freetype-dir=/usr/local  --enable-gd-native-ttf
--with-jpeg-dir=/usr --with-png-dir=/usr --with-pear --with-mm

and as soon as I install the new libphp4.so, and restart apache...  the
new httpd processes dominate all the CPU time.  Not hideously badly,
but enough so I can't let it continue.  The load goes to 7 or 8 and
stays there.  
The issue goes away when the older module is replaced.
There are no compile or make errors printed that I've noticed.
What can I do to resolve this?  Is this a known problem with a certain
combination of modules?
Thanks

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18523&edit=1



Thread (19 messages)

« previous php.bugs (#15429) next »