#46218 [Opn->Fbk]: apache2 reaches max clients limit with error in php_stdiop_set_option

2009-04-06 Thread jani
 ID:   46218
 Updated by:   j...@php.net
 Reported By:  funky2step at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Streams related
 Operating System: RHEL ES Rel 4 (Nahant Update 6)
 PHP Version:  5.2.6
 New Comment:

What MPM did you use with Apache2?


Previous Comments:


[2009-03-25 16:11:16] funky2step at gmail dot com

We fixed this in the end by ditching apache2 and running php5 with
apache 1.3.41
The problem has not occurred in the month or so since implementing it
and considering it used to happen at least once per day, I think this is
a decent solution.



[2009-03-13 14:23:01] mibrahim at mibrahim dot net

Same exact problem. Tested it by lowering MaxClients, apache hangs
within 1 minute. The only temporary solution is to increase MaxClients
way up, and restart the server with a cron job every period of time.



[2008-11-07 09:09:38] funky2step at googlemail dot com

I installed the latest snapshot of PHP5 (PHP 5.2.7RC3-dev) and the
problem remains. In fact it has happened twice in the space of 24
hours.
This problem doesn't just occur with this particular server and its
associated site but on all other php5.2.6 and apache2 installations.
Has no-one else seen this serious problem with busy sites using this
software?



[2008-11-06 10:38:02] funky2step at googlemail dot com

Thanks for the reply. Do you actually know if there is a problem with
the main release of php 5.2. I'm slightly cautious about installing a
snapshot because it is a busy production site. Are there any issues with
installing a snapshot?



[2008-10-07 09:11:33] funky2step at googlemail dot com

Does anyone have any ideas about this? It's causing a lot of problems
as it happens quite frequently.



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/46218

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



#46218 [Opn->Fbk]: apache2 reaches max clients limit with error in php_stdiop_set_option

2008-10-24 Thread jani
 ID:   46218
 Updated by:   [EMAIL PROTECTED]
 Reported By:  funky2step at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Streams related
 Operating System: RHEL ES Rel 4 (Nahant Update 6)
 PHP Version:  5.2.6
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:


[2008-10-07 09:11:33] funky2step at googlemail dot com

Does anyone have any ideas about this? It's causing a lot of problems
as it happens quite frequently.



[2008-10-02 13:47:26] funky2step at gmail dot com

Description:

PHP is running with apache 2.2.9 (mpm=prefork)

./configure  --prefix=/usr/local/php5
--with-config-file-path=/usr/local/php5 --with-mysql --with-gd
--with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr
--enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --with-xsl
--with-curl=/usr/include --with-curlwrappers

The server reaches the maxclients limit but does not ever kill the old
processes.
The server does not respond to any more requests. This is not due to
heavy load.

GDB output shows an error in php_stdiop_set_option (see trace in actual
result section)

GDB output of all httpd processes attached to sockets in CLOSE_WAIT
state show the same as above.

Actual result:
--
Attaching to process 14035
Reading symbols from /usr/local/apache2/bin/httpd...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/local/apache2/lib/libaprutil-1.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libaprutil-1.so.0
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /usr/local/apache2/lib/libapr-1.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libapr-1.so.0
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/tls/librt.so.1...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208387904 (LWP 14035)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/apache2/modules/libphp5.so...done.
Loaded symbols for /usr/local/apache2/modules/libphp5.so
Reading symbols from /usr/lib/libexslt.so.0...done.
Loaded symbols for /usr/lib/libexslt.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/local/lib/libcurl.so.4...done.
Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/lib/libxslt.so.1...done.
Loaded symbols for /usr/lib/libxslt.so.1
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /usr/lib/libidn.so.11...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/lib/libldap-2.2.so.7
Reading symbols from /lib/libssl.so.4...done.
Loaded symbols for /lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /usr/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/lib/liblber-2.2.