unix

How do I monitor processes on my Solaris server?

The prstat command is used on Solaris systems to monitor processes.

# prstat [ -acJLmRtTv ] [ -C psrsetlist ] [ -j projlist ] [ -k tasklist ] [ -n ntop[,nbottom] ] [ -p pidlist ] [ -P cpulist ] [ -s key | -S key ] [ -u euidlist ] [ -U uidlist ] [ interval [count] ]

prstat -u root -n 5 -P 1,2 1 1

The command above will show 5 root processes on CPU 1 and 2 1 time every 1 second.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top