Ticket #229 (closed defect: fixed)
Reching of var_cache RAM limit cause Apache to swap alot
|Reported by:||wips||Owned by:||moo|
|Blocked By:||PHP Version:||5.2.9|
|Application:||Need User Feedback:||no|
We have 128M limit for variables cache. On some of our servers it may be reached sometimes. And after that happens Apache start slowly swapping on HDD until it reaches max swap size (16G) allowed by OS, which causing unpredictable server behavior.
One interesting thing about it, is that swap grows to its limit when server isn't loaded (we have pure night traffic and high load at work time). But while server is under high load, everything works approximately as it should be. You can see this situation on a picture below (it's an MRTG graph of free/used memory).
At present time problem solved by rolling back to 1.2.2 version, but it has other bug - http://xcache.lighttpd.net/ticket/152, which is critical for us too.
System params: FreeBSD 7.1, PHP 5.2.9, XCache 1.3.0 (1.2.2), RAM - 4G, max swap size - 16GB, Apache 2.11.