Search code examples
apc

Does high APC fragmentation matter?


I'm seeing a high amount of fragmentation on APC (>80%) but performance actually seems pretty good. I've read another post that advises disabling object caching in wordpress / w3tc, but I wonder if the reduction in fragmentation is better than the performance boost of caching the objects in the first place.

cache fragmentation apc settings


Solution

  • Fragmented APC is still a few times better than without APC, so please don't deactivate APC. Increase your memory instead. With more memory APC will fragment lot less. This will be healthier for APC itself. APC itself has no "defragmentation" process. You could restart yout http service or call apc_clear_cache() in an php script. But beware of the performance impact for the next minutes when your cache will be rebuilt.