• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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