[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

How to tell if Linux system is running low on memory ?

All,

I need to find a way to tell if a Linux server is running low on memory. On solaris, I would use vmstat -p or sar -g to see the paging activity.
0
Anonymouslemming
Asked:
Anonymouslemming
1 Solution
 
RobsonCommented:
Try command 'free'. It will show you how much of swapspace is used.

R.
0
 
wesly_chenCommented:
vmstat (without option) is working on Linux, too.
"free" or "top" will tell you the paging activities, too.
0
 
macker-Commented:
'free -m' will give you a good report.  top also gives good real-time analysis, while vmstat gives more cryptic analysis..  You can also review /proc/meminfo for extremely detailed info.

Note that MemFree is calculated based not only on application memory usage, but also disk cache.  The disk cache will grow, even if it means pushing application memory into swap.  Usually this works out okay, but it can be problematic.  The 2.6 kernel is much improved for tuning kernel swappiness, and some of these features have been backported to 2.4 by RedHat.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now