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 |
Jump to:
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
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
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
Cool -- thanks for doing that.
#4
Automatically closed -- issue fixed for two weeks with no activity.