php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56884 Hanging Apache processes
Submitted: 2006-03-08 18:31 UTC Modified: 2009-03-18 14:10 UTC
From: steve-php-dev at spamwiz dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.2 OS: RHEL 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steve-php-dev at spamwiz dot com
New email:
PHP Version: OS:

 

 [2006-03-08 18:31 UTC] steve-php-dev at spamwiz dot com
Description:
------------
APC version 3.0.9

./configure --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-soap --with-xsl --with-zlib --enable-mbstring --with-openssl --with-apache=../apache_%{apache_version} --enable-track-vars --without-pear --disable-cli --with-gmp --without-spl --without-sqlite --without-pdo

We also dynamically link the mailparse extension.

With 3.0.8, APC worked great, except for bug #6634.  We were anxious to get 3.0.9 set up, as it fixed the bug.  In our development environment, we tested out 3.0.9, and it worked great -- we could actually use APC on some pages that we had disabled APC for earlier.

When we put 3.0.9 in our production environment, however, we had some serious issues.  The number of Apache processes running went up significantly right from the start (almost double), and kept on rising slowly.  As soon as we hit our limit for Apache processes, Apache stopped responding.  We had to keep on restarting Apache to keep the number of processes reasonable.  Downgrading to 3.0.8 fixed the problem.  Incidentally, the number of Apache processes even rose on servers that weren't serving a single Apache request.

We can't reproduce it with any one script.  My guess would be that something is hanging the process, so it never processes any more requests.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-08 18:32 UTC] steve-php-dev at spamwiz dot com
It's actually PHP version 5.1.2, but 5.1.1 was the only option when I opened the ticket.
 [2006-03-08 18:39 UTC] rasmus@php.net
Could you try commenting out these two lines:

    apc_sma_unlock();
    apc_cache_unlock(apc_cache);

from the bottom of apc_main.c
 [2006-03-09 19:18 UTC] me at contents dot nl
Commenting out those two lines works for me (win32, apache 1.3.33, apc 3.0.9-dev, php 5.1.2)
 [2006-03-10 00:30 UTC] rasmus@php.net
Try current cvs now
 [2006-03-13 11:07 UTC] tom at rochen dot com
Is this fixed yet?  I am experiencing the same issue or at least something like it.
 [2009-03-18 14:10 UTC] shire@php.net
This looks fixed, if you are still experiencing this issue please test the latest CVS and re-open with any information you can give us on load/reproduction examlpes etc.  Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 10:01:31 2024 UTC