Operating System > Linux

How to check and monitor memory usage on Linux

(1/1)

Kevin:
To monitor the memory usage on the server is essential in order to make your server stable. If your server goes out of memory then you may need to reboot the server to come back your server online again. There are few commands available to monitor the memory usage on the server:

vmstat
This command gives you the information about processes, memory, paging, block IO,  traps, and CPU activity. For all the options refer the manual of this command (man vmstats).

free -m
It displays the amount of free and used memory in the system.  For all the options, refer the manual of this command (man free).

cat /proc/meminfo
This file contains the information of current memory status (Free memory, used memory etc.).

Regards,

Kevin

hmb-willem:
Really helpful commands, thank you for sharing.

SwissLayer.:
Hi,

There's a lot of options but we like "htop" command.

Navigation

[0] Message Index

Go to full version