Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-08-2008, 08:52 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Monitoring Memory, VSZ or RSS


I'm setting up Nagios as my monitoring/alerting system and want to monitor the memory usage of a few specific processes.
I've read the ps man page as well as lots of online docs about the differences between virtual and resident memory.
I'm still unsure about which metric I should use to monitor though.
VSZ obviously includes RSS along with other shared things (libraries, devices, etc) so it seems that if I monitor VSZ, I'll find out quickly enough if any processes leak memory.

Does this sound reasonable, or should I only really be concerned with the Resident memory usage?

I'm running a Linux Debian Etch system.

Thanks for the suggestions.
Old 09-08-2008, 10:51 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,819

Rep: Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452
There is no good memory usage metric in Linux. Out of those two, RSS would be your best bet, but includes (in storage) pages for shared libraries.
Recently a new metric PSS was added to smaps to apportion the shared pages more "fairly" - FSVO fairly. If you have access to that, use it instead. Merely makes the numbers less "rubbery", not correct.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is VSZ more than RSS in ps aux even if I'm not using any swap? weijie90 Linux - Hardware 4 08-20-2008 07:02 PM
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 11:10 AM
memory monitoring in-process mmeijer Programming 2 07-14-2006 12:00 PM
memory types - what's what: vm resident shared rss X's jonaskoelker Linux - Software 2 05-26-2005 05:59 AM

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration