LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   doubt regarding sar command (https://www.linuxquestions.org/questions/linux-newbie-8/doubt-regarding-sar-command-729032/)

praveenk13 05-28-2009 02:44 AM

doubt regarding sar command
 
Hi
I have a doubt regarding sar command output.

Will there be any difference in the output if i execute the command as a root user or normal user?

The reason for my doubt is we need to do performance monitor while we are running our web application. One of my friend told we should run the sar command as a cron job from the same user where we have started the application server. The man page of sar says it monitors the system activity which means output should be same for any user

Kindly clarify my doubt

colucix 05-28-2009 02:56 AM

From the sar man page:
Quote:

Note that with recent 2.6 kernels, these statistics can be retrieved only by root.
Anyway, you can give it a try, saving the output in a file using -o and comparing the results.


All times are GMT -5. The time now is 08:38 PM.