Topic
  • 2 replies
  • Latest Post - ‏2012-05-03T09:22:42Z by shibhikkiran
shibhikkiran
shibhikkiran
17 Posts

Pinned topic To find which user has fired a command that takes most of the CPU memory?

‏2012-04-27T08:34:54Z |
Hello,

I just thought this question while I'm practicing. But, I couldn't able to find the way out.

The question is, How to find a user who has activated a process that takes bunch of CPU memory. So that, it severely affects other processes running on the system.

I guess, first of all we need monitor the process using 'topas' command.
Then, it gives the PID of that process that takes more memory. But, How could we trace the user who has executed that command?

Please help me with your valuable thoughts!

Looking forward to have response!
Updated on 2012-05-03T09:22:42Z at 2012-05-03T09:22:42Z by shibhikkiran
  • mmveiga
    mmveiga
    78 Posts

    Re: To find which user has fired a command that takes most of the CPU memory?

    ‏2012-04-30T16:25:21Z  
    Hi,
    A quick command that will show how much memory each process is taking in MB :
    svmon -P -O summary=basic,unit=MB

    After you have the PID you just need to run :
    ps -ef | grep PID
    The first column will show the username for the owner of the PID.

    You can also check how much memory is being used by each username by running :
    svmon -U -O summary=basic,unit=MB

    For more information and other options you can refer to the man pages for the svmon command and the AIX Infocenter.

    Regards,
    Marcelo.
  • shibhikkiran
    shibhikkiran
    17 Posts

    Re: To find which user has fired a command that takes most of the CPU memory?

    ‏2012-05-03T09:22:42Z  
    • mmveiga
    • ‏2012-04-30T16:25:21Z
    Hi,
    A quick command that will show how much memory each process is taking in MB :
    svmon -P -O summary=basic,unit=MB

    After you have the PID you just need to run :
    ps -ef | grep PID
    The first column will show the username for the owner of the PID.

    You can also check how much memory is being used by each username by running :
    svmon -U -O summary=basic,unit=MB

    For more information and other options you can refer to the man pages for the svmon command and the AIX Infocenter.

    Regards,
    Marcelo.
    Hello marcelo,

    It works great.
    Thanks for your valuable reponse.

    Have a nice day!

    Regards,
    kiran