How to prevent Apache hangs when PHP APC cache completely fills up? -


when apc cache full, hangs apache. apache responds requests, waits forever apc cache free resources, never happen.

i run every 10 minutes cron job own small expunge script, deletes expired entries apc. ok, add more memory apc and/or run expunge script more often. that's not real solution, looking new way how deal issue.

i find setting ttl changes apc's behavior when cache full. default, if ttl 0, apc has empty cache when gets full. manual:

in event of cache running out of available memory,the cache expunged if ttl equal 0. otherwise, if ttl greater 0, apc attempt remove expired entries.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -