I have setup a LAMP server in Ubuntu 11.10 and sometimes (it looks relatively random), something takes a lot of memory and the server swaps a lot with some oom_kill in /var/log/syslog as the swap becomes full. Last night oom_killer has been called 176 times.
When the madness stops, I can see "/etc/mysql/debian-start" being called in syslog, not sure if there is related or not.
It can last several minutes to nearly 2 hours.
This is what the 24-hour CPU, Bandwidth and Disk IO charts look like:
30 days Disk IO chart:
Log excerpt of what I get during oom_killer:
http://pastebin.com/qeCNWnVH
There seems to be way too many apache2 processes (148), although all incoming traffic has stopped.
I've checked /etc/log/apache2/error.log, and I cannot see any specific errors during swap (There are a few segmentation fault reports).
So now, I'm a bit lost and I'm not sure what I should do from here.