Thanks for the reply guys
The system is debian and here is a copy paste from top:
Quote:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
870 www-data 20 0 185m 14m 3892 S 3 2.9 0:00.94 apache2
724 www-data 20 0 189m 18m 4328 S 2 3.6 0:05.98 apache2
857 www-data 20 0 187m 17m 3880 S 2 3.3 0:00.67 apache2
806 www-data 20 0 190m 19m 4000 S 2 3.8 0:02.87 apache2
869 www-data 20 0 186m 15m 3660 S 2 3.1 0:00.81 apache2
|
And free sais:
Quote:
root@vps:~# free -m
total used free shared buffers cached
Mem: 512 185 326 0 0 108
-/+ buffers/cache: 76 435
Swap: 0 0 0
|
It seems that there were many users making request to apache at the same time and that's why it used all the ram, and it's not the first time, how can I fix this so it doesn't happen again, maybe with apache ?