Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Monitor process memory usage

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 05-31-2006   #1 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 3
Monitor process memory usage

I'm looking for a way to monitor memory usage based on procid ... both res and shared mem. Where can I find this information? I was thinking about /proc/PID/status.
li9ux_newbie is offline  


Old 05-31-2006   #2 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,623
Sorry, I'm not entirely sure what you're looking for but have you tried looking at the /proc/meminfo file and using top to monitor memory usage?

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline  
Old 06-09-2006   #3 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 3
Thanks .. but /proc/meminfo gives the sytem information. I am interested in process information.

Basically for each process I want to look at Total, Res and Shared memory. I am running Linux version 2.6.10. I believe /proc/pid/statm provides this information but it is broken in this version.
li9ux_newbie is offline  
Old 06-09-2006   #4 (permalink)
Linux User
 
DThor's Avatar
 
Join Date: Jan 2006
Location: Ca..na...daaa....
Posts: 319
You needed it in a form other than "top" gives you? It has quite a few options for batch processing.

DT
DThor is offline  
Old 09-10-2007   #5 (permalink)
Just Joined!
 
Join Date: Sep 2007
Posts: 2
Thumbs up This is what you are exactly looking for.

See these links and follow the guide, I am using this and one more script provided by him, ( not available on the channel ) For my application monitoring and also paging etc in case the application's memory usage goes beyond specified limits..

Memory usage Retrieval on Linux ( process wise and general )

How much RAM is used per program .


-- Ritu
ritu_singhal is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2