Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • Last Modified:

Processes running under a user

Following command in Solaris gives me the Memory and CPU usage for each user.

 prstat -t

Is there a way to find out the processes that are running under each of these users? This will enable me to find out why each user is taking so much memory and CPU.

Thank you
0
ank5
Asked:
ank5
3 Solutions
 
Bryan ButlerCommented:
    -t    Report total usage summary for each user. The  summary
           includes  the  total number of processes or LWPs owned
           by the user,  total  size  of  process  images,  total
           resident  set size, total cpu time, and percentages of
           recent cpu time and system memory.

     -u  euidlist
           Report only processes whose effective user  ID  is  in
           the  given  list.  Each  user  ID  may be specified as
           either a login name or a numerical user ID.

     -U  uidlist
           Report only processes whose real user  ID  is  in  the
           given  list. Each user ID may be specified as either a
           login name or a numerical user ID.

0
 
yuzhCommented:
To check which process is eating your memory or CPU, eg the top 15 processes, you can do:

/usr/ucb/ps -uaxw | head -15

it also show you the owner of the process.
0
 
AmolCommented:
"prstat -a" will show you process too.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now