How to handle GC cache warnings?

Sometimes, perhaps once a day, our PHP web server using APC will raise an E_WARNING error, which my error handler catches and logs. It looks something like this:

require_once() [function.require-once]: GC cache entry '/path/file.php' (dev=47775802 ino=183046) was on gc-list for 3602 seconds - in /path/some_other_file.php(31) 

Is this a recoverable error? Should I just ignore these warnings?

Currently, I got it so that the script dies in E_WARNING, because we want the code to be stable, and most of the warnings I saw cannot be continued (absent ones include, state, etc.)

APC has a lot of memory, 100 MB and only approx. 32 MB used by both file and user caches.

+6
source share
2 answers

From what I can tell from Googling, this does not affect the current script, and therefore the warning can be ignored.

+3
source

If you are thinking about APCU (PHP 5.5), I suggest updating APC to the version where this PR will be merged. APCU 4.0.3 at least.

+9
source

Source: https://habr.com/ru/post/894253/


All Articles