We have different type of tools and command which are used in Solaris or other Unix system to monitor the system process. But if we are talking about only Sun Solaris server then we have very good process tool which is called "prstat".
In this post, we will find that how prstat is work on the Solaris platform.
⇾ !-[solaris]# prstat
When you run the above command on the command line you will get the below output on the CLI screen which are refreshing in every few seconds and sorting all the information regarding the system resource.
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
21322 root 11M 3236K cpu0 59 0 0:00:00 0.0% prstat/1
21323 root 18M 4788K sleep 59 0 0:00:00 0.0% sshd/1
22345 root 10M 2188K sleep 59 0 0:00:00 0.0% bash/1
584 root 13M 3832K sleep 59 0 0:01:59 0.0% nscd/51
154 root 13M 2068K sleep 59 0 0:00:00 0.0% syseventd/18
183 root 1772K 776K sleep 59 0 0:00:13 0.0% utmpd/1
538 root 11M 2572K sleep 59 0 0:00:00 0.0% picld/4
Total: 12 processes, 31 lwps, load averages: 0.00, 0.00, 0.00
This is a quick view of the prstat command but if you wanted to get a different view of the same info, like a summary of what users own these CPU consuming processes
⇾ !-[solaris]# prstat -a
If you run prstat with the -a option (prstat -a) you will get an output similar to the default one, but the last few lines of it will be used for providing a really useful report of the users consuming top system resources.
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
21322 root 11M 3236K cpu0 59 0 0:00:00 0.0% prstat/1
21323 root 18M 4788K sleep 59 0 0:00:00 0.0% sshd/1
22345 root 10M 2188K sleep 59 0 0:00:00 0.0% bash/1
NPROC USERNAME SWAP RSS MEMORY TIME CPU
5 root 52M 13M 1.3% 0:00:00 0.0%
50 root 841M 571M 56% 0:22:22 0.0%
2 daemon 17M 4520K 0.4% 0:00:04 0.0%
Total: 12 processes, 31 lwps, load averages: 0.00, 0.00, 0.00
We have different type of syntax which we can used to monitor the Solaris server process which are listed below.
!-[solaris]# prstat -L -> This shows thread per line instead of one process per line
!-[solaris]# prstat -s -> prstat output can be sorted using set of sub-options .sub options are cpu,pri,rss,size,time
In this post, we will find that how prstat is work on the Solaris platform.
⇾ !-[solaris]# prstat
When you run the above command on the command line you will get the below output on the CLI screen which are refreshing in every few seconds and sorting all the information regarding the system resource.
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
21322 root 11M 3236K cpu0 59 0 0:00:00 0.0% prstat/1
21323 root 18M 4788K sleep 59 0 0:00:00 0.0% sshd/1
22345 root 10M 2188K sleep 59 0 0:00:00 0.0% bash/1
584 root 13M 3832K sleep 59 0 0:01:59 0.0% nscd/51
154 root 13M 2068K sleep 59 0 0:00:00 0.0% syseventd/18
183 root 1772K 776K sleep 59 0 0:00:13 0.0% utmpd/1
538 root 11M 2572K sleep 59 0 0:00:00 0.0% picld/4
Total: 12 processes, 31 lwps, load averages: 0.00, 0.00, 0.00
This is a quick view of the prstat command but if you wanted to get a different view of the same info, like a summary of what users own these CPU consuming processes
⇾ !-[solaris]# prstat -a
If you run prstat with the -a option (prstat -a) you will get an output similar to the default one, but the last few lines of it will be used for providing a really useful report of the users consuming top system resources.
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
21322 root 11M 3236K cpu0 59 0 0:00:00 0.0% prstat/1
21323 root 18M 4788K sleep 59 0 0:00:00 0.0% sshd/1
22345 root 10M 2188K sleep 59 0 0:00:00 0.0% bash/1
NPROC USERNAME SWAP RSS MEMORY TIME CPU
5 root 52M 13M 1.3% 0:00:00 0.0%
50 root 841M 571M 56% 0:22:22 0.0%
2 daemon 17M 4520K 0.4% 0:00:04 0.0%
Total: 12 processes, 31 lwps, load averages: 0.00, 0.00, 0.00
We have different type of syntax which we can used to monitor the Solaris server process which are listed below.
!-[solaris]# prstat -L -> This shows thread per line instead of one process per line
!-[solaris]# prstat -s -> prstat output can be sorted using set of sub-options .sub options are cpu,pri,rss,size,time
!-[solaris]# prstat -t -> It provides complete users resource utilization.
!-[solaris]# prstat -Z -> It provides summary per local zone.
!-[solaris]# prstat -Z -> It provides summary per local zone.
No comments:
Post a Comment