What’s a good way to measure an application’s memory usage (beyond top)? Ideally, this would provide summarized information (rather than a lot of raw data like Linux’s /proc/pid/maps).
this seems a hard question to answer, I’m wondering what your scope would be?
I have an app where the Rails/mongrel portion is fairly efficient – but the data queries can be huge memory hogs. So excluding the db it’s effecient.
But to answer the question, I’d look into a server monitoring tool. Not Monit but maybe something like Nagios… though I haven’t really used it, that’s where I would start.
This python script seems to work pretty well.
http://unixlive.editboard.com/general-linux-admin-stuff-f3/how-much-ram-is-used-per-program-t5.htm
August 28, 2008 at 5:41 pm
this seems a hard question to answer, I’m wondering what your scope would be?
I have an app where the Rails/mongrel portion is fairly efficient – but the data queries can be huge memory hogs. So excluding the db it’s effecient.
But to answer the question, I’d look into a server monitoring tool. Not Monit but maybe something like Nagios… though I haven’t really used it, that’s where I would start.
August 29, 2008 at 4:02 pm