Invalid argument supplied for foreach() - not enough memory to APC

shaal - September 26, 2008 - 01:53
Project:Performance Logging and Monitoring
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

APC memory was set (by default) to 30

when i checked this page -
admin/logs/performance_logging/summary

i got this error -
warning: Invalid argument supplied for foreach() in /
......./html/sites/all/modules/performance/performance.module on line 367.

i added line to php.ini
apc.shm_size=48

and now it seems to be working much better!
(and with no errors)

#1

kyle_mathews - October 6, 2008 - 20:01

I ran into the same problem. . . perhaps the memeory usage should be checked for within the module to alert the user of potential problems?

#2

kbahey - October 6, 2008 - 20:18
Status:active» fixed

I committed a fix for this.

Basically, it checks if shm_size is less than 48, and displays a warning to the admin if it is below that.

Should appear in the tarball within 12 hours or so.

#3

kyle_mathews - October 8, 2008 - 16:48

Cool -- thanks for doing that.

#4

Anonymous (not verified) - October 22, 2008 - 16:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.