Processes running under a user

Posted on 2011-05-05
Last Modified: 2013-12-27
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
Question by:ank5
    LVL 16

    Accepted Solution

        -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.

    LVL 38

    Assisted Solution

    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.
    LVL 9

    Assisted Solution

    "prstat -a" will show you process too.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now