Results 1 to 5 of 5
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....
- 05-31-2006 #1Just 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.
- 05-31-2006 #2
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?
BryanLooking 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.
- 06-09-2006 #3Just 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.
- 06-09-2006 #4
You needed it in a form other than "top" gives you? It has quite a few options for batch processing.
DT
- 09-10-2007 #5Just Joined!
- Join Date
- Sep 2007
- Posts
- 2
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



