Thursday, November 2, 2017

linux - htop Memory meter is full. I haven't even started any service yet



I don't understand why my htop meter is full already. I'm not even running some task. Here's the screenshot of my htop:



enter image description here



The green meter shows used memory, the blue meter shows buffers, the yellow meter shows cache.
it seems that the cache have used up all my memory here. Or am I just confused? Because the numeric number shows 48/494MB.




So what is happening here? Should I increase the memory of my server?



I'm going to run nginx, php and wordpress. is this server enough to handle this setup?


Answer



Since you weren't using your memory for anything better, its being put to use as disk cache. If you start services, they will just take memory from the cache. This is a good thing, not a sign that anything is wrong. See linuxatemyram


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...