Report this

What is the reason for this report?

High RAM usage with zero traffic

Posted on November 26, 2014

I have 1core/1GB ram and no traffic on the server, installed/running php & postgresql and my ram is used about 95%, is this normal? the same things I was running on the (ovh)VPS and ram was about 100Mb to 200Mb?

top

Tasks: 89 total, 2 running, 87 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1017984 total, 941744 used, 76240 free, 79380 buffers KiB Swap: 262140 total, 68 used, 262072 free. 577160 cached Mem

Regards



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @JonsJava:

First off, let’s make sure it’s actually used, not just in buffers/cache. Run this, and give us the output:

free -m

Here’s an example output:

            total       used       free     shared    buffers     cached
Mem:          7872       7707        165          2        272        432
-/+ buffers/cache:       7002        870
Swap:         3967        310       3657

Now, it’s showing 165M free. Oh noes. Well, not really.

Let’s look at the 2nd line

-/+ buffers/cache:       7002        870

It has 870M free. Let’s add that with the other free (ignoring the Swap line, if you have one).

165+870 = 1035 (or ~1GB) free.

So, in summation, you may not actually be out of RAM. It may just be cached. For more info on caching, go to linuxatemyram.com

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.