How much memory is application XYZ using?
I want to track how much memory a certain app is using & log it along with some other things I log every minute as a cron job. Is there some command that will spit back some info on memory usage of an application by name or PID? It has to be non-interactive because I'm going to do it with a script - so top won't work (at least as far as I know).
|
Depending on how accurate of usage you need, ps and awk might be enough.
http://wiki.marandcustomsolutions.co...g+memory+usage |
Quote:
For others that come across this thread, I'm using: ps -eo rss,args | grep "XYZ" | grep -v "grep" Thanks! |
Quote:
The ps solution posted above is probably easier, though. |
All times are GMT -5. The time now is 06:11 PM. |