Memory usage on Debian Linux

18,893

Linux systems always try to use as much ram as available for various functions like caching of executables our even just page reads from disk. That's what you bought your fast RAM for after all.

You can find out more about your system by doing a

cat /proc/meminfo

More info in this helpful blog post If you find out a lot is used in cache then you don't have to worry about the system.if individual processes warn you about memory issues then you'll have to check their settings for any memory limiting settings. Many server processes have those, like php or java based processes.

Questions of this nature are also probably more at home at https://serverfault.com/

Share:
18,893
Vojtěch
Author by

Vojtěch

Updated on June 04, 2022

Comments

  • Vojtěch
    Vojtěch about 2 years

    I am trying to figure out what is wrong with my Debian server - I am getting warnings of having not enough free memory - top (as you can see below) is saying that 1.8G is consumed, but I am unable to find which application is responsible for it. There is only Tomcat running, which consumes, according to top, ~25 % and so 530m. But There is more than 1 GB left, which I am unable to find!

    Tasks: 54 total, 1 running, 53 sleeping, 0 stopped, 0 zombie
    Cpu(s):100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 2150400k total, 1877728k used, 272672k free, 0k buffers
    Swap: 0k total, 0k used, 0k free, 0k cached
    
      PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
     3271 root 18 0 1559m 530m 12m S 0 25.2 1:44.31 java
     1568 mysql 15 0 270m 71m 7332 S 0 3.4 0:50.79 mysqld 
    

    (Full top output here)