We are running Ubuntu version on AWS EC2 instance for one of our production server. Issues is Memory is getting utilized fully and our website which is hosted in this server is freezing. When i checked its CPU utilization, It is so normal at below 40% but when i SSHed in to the instance and checked
total used free shared buffers cached Mem: 3.9G 3.2G 640M 64M 394M 1.4G -/+ buffers/cache: 1.4G 2.4G Swap: 0B 0B 0B
As soon as i run
echo 3 > /proc/sys/vm/drop_caches my site will come up fine but i have to run this command every hour to keep my site live. I can set up a cron for doing this but i want to know what is the issue and how we can resolve it?