Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cpu utilization by a user

SOLVED
Go to solution
Prasanth V Aravind
Trusted Contributor

Cpu utilization by a user



How i can find , Cpu utilization by a user. For example . the cpu utilization by oracle user.


Prasanth
5 REPLIES
Pete Randall
Outstanding Contributor

Re: Cpu utilization by a user

Do you have Glance available? If so, you can set up a filter on User Name, so that only the processes of a particular user will be displayed. Otherwise, you will need to look at the XPG4 options of the ps command.


Pete

Pete
spex
Honored Contributor
Solution

Re: Cpu utilization by a user

$ UNIX95= ps -u oracle -o cpu= -o pid= -o args= | sort -nk1
James George_1
Trusted Contributor

Re: Cpu utilization by a user

Hi

this will give you the top 10 users

# UNIX95= ps -e -o "vsz pcpu ruser pid stime time state args" | sort -rn | head -10

James
forum is for techies .....heaven is for those who are born again !!
Tim Nelson
Honored Contributor

Re: Cpu utilization by a user

Another option in glance.

You can create process groups in the parm files. i.e. all processes with the user oracle will be grouped together and reported on in a whole under the process group pane.

There are examples in the /var/opt/perf/parm file.

Highlighted
ng_7
Regular Advisor

Re: Cpu utilization by a user

I think 'top' command will also give you the information you need.

ng