Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux preallocates most memory to buffers/cache so you'll always see a high memory utilization in free if you look at the first line.
However if you look at the "-/+ buffers/cache" line you'll see what is used/free without the buffers/cache. This is your ACTUAL memory used/free. Looking at what you posted I don't see a memory constraint.
Look at the output after buffers/cache. Seems to me you have 2.2G free memory.
In short, Linux is pretty advanced kernel, and it has "free memory is wasted memory" philosophy. So, it uses almost all free memory to cache stuff. Cached memory is free. It takes virtually no CPU time to give cached memory to program, it's like it is not used at all.
Anyway, always look at the output after -/+ buffers/cache, and search the Internet if you want to know more about Linux memory managment (which is the best as the current computer science can provide).
EDIT: jlightner answered while I was typing this (I'm sleepy after work, so I type with ease ). Gotta love LQ
Thank you for the prompt reply along with the explanation.
what would be your suggestion to me for monitoring the threshold
suppose i want to be notified when memory usage is above 75%
do i keep track of -/+ buffers cache.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.