LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to measure maximum memory usage of XYZ application? (http://www.linuxquestions.org/questions/linux-software-2/how-to-measure-maximum-memory-usage-of-xyz-application-706379/)

Grawp 02-21-2009 04:02 AM

How to measure maximum memory usage of XYZ application?
 
How to measure maximum memory usage of XYZ application in GNU/Linux systems? I have an application for processing some information from text files. Its average runtime is about 4ms so running a script which is looking for memory usage from 'ps' is not an option.
Any help is appreciated.
sorry for my english

tokico 02-21-2009 08:46 AM

Quote:

Originally Posted by Grawp (Post 3452049)
How to measure maximum memory usage of XYZ application in GNU/Linux systems? I have an application for processing some information from text files. Its average runtime is about 4ms so running a script which is looking for memory usage from 'ps' is not an option.
Any help is appreciated.
sorry for my english

I think if you use:

Code:

./XYZ.sh & ps aux | grep XYZ
you will get what you want, because the & sign means that ps and grep are run at the same time. Assuming it's XYZ. ;D


All times are GMT -5. The time now is 11:18 AM.