php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57570 Spiking load averages
Submitted: 2007-03-09 16:14 UTC Modified: 2009-02-16 20:22 UTC
From: iamstever at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 4.4.5 OS: RHEL 4.4
Private report: No CVE-ID: None
 [2007-03-09 16:14 UTC] iamstever at gmail dot com
Description:
------------
Hi,

I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine skyrockets.

It does not happen with the opcode cache in Zend Platform for PHP 4.4.6, nor with APC 3.0.12p2.

Also, in the error log I see a lot of things like this (not sure if it is related):

 [apc-warning] GC cache entry 'path_to_file.php' (dev=64768 ino=0) was on gc-list for 4590172 seconds

The servers with 3.0.12p2 have a steady load average below 2.5 while the 3.0.13 ones are erratic, act like the behaving ones until about 8am, then spike to the 30s are stay there, sometimes dropping down (though I suspect the load balancer is removing them for periods of time). 

At any rate, the issue is with APC 3.0.13 once under moderate load on a PHP4 application.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-13 23:28 UTC] gopalv82 at yahoo dot com
Any cache fragmentation ? Are you using apc user cache heavily ? (known issues with that)
 [2007-03-15 03:57 UTC] gopalv82 at yahoo dot com
Two patches on HEAD

http://news.php.net/php.pecl.cvs/7416
http://news.php.net/php.pecl.cvs/7418

Maybe that could be a solution to your load spikes
 [2007-03-21 05:28 UTC] marcus at synchromedia dot co dot uk
I've not noticed the load averages, but I've seen really long page load times (> 45sec) for the first hit on each page. The app is using user cache quite extensively, and I have over 75,000 16-byte fragments after 1 hour. I hope your patch fixes that.
 [2007-03-23 04:09 UTC] gopalv82 at yahoo dot com
Yes, the patches fix the basic fragmentation issues. Please update bug if the problem persists.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 05:01:30 2024 UTC