tags:

views:

280

answers:

2

Is this bad?

Does it mean that it's not helping at all? What paths do I go down to improve situation?

Thanks in advance.

A: 

[...] Fragmentation is what hurts performance, not the size of memory per se. But it also seems that fragmentation happens when memory is low [...]

Note also that there seems to be a bug with apc.php's graph: http://pecl.php.net/bugs/bug.php?id=13146

aefxx
I am not sure how to test if the graph is accurate or not?Also if it's fragmenting should I just remove it? Not sure what to do here.
DFischer
A: 

In my experience, yes. I had a system where APC was showing 100% fragmentation, and performance was bad. I increased APC's memory limit (to 200 MB in my case -- but we had a lot of code) enough to give it some slack room. Fragmentation dropped to zero, and IIRC, CPU usage on the server dropped by 50%.

Also, make sure you're using the apc.php script that comes with APC to monitor fragmentation/utilization. We've even written a nagios check to watch APC, 'cause we have enough traffic that apache locks up entirely when APC fills up.

Moral of the story: give APC enough memory, and monitor utilization.

Frank Farmer