Linux server ran out of memory stopped everything except ssh and swap was unused

view story

http://serverfault.com – A few days ago my linux apache server ran out of memory. The server is a xen guest. The server killed all my processes except ssh. A minute before it ran out of memory, a script of mine saved the output of various commands. Here was the output: # free -m total used free shared buffers cached Mem: 2003 1866 137 0 3 1159 -/+ buffers/cache: 703 1300 Swap: 511 0 511 # vmstat 1 2 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free (HowTos)