In this post, I will explain you which commands is used for display the Solaris zone process information.
Using "prstat" command we can display the solaris zone process information. This command generate the reports information about the processes and zones.
The prstat statistics utility shows a summary of the processes that are using system resources currently. The prstat utility summarizes this information for an every 5 seconds by default and reports the statistics for that period.
Display the zones process informtion:
[sun]# prstat -Z
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
18638 20159 2118M 1502M cpu43 10 0 0:00:44 2.4% oracle/7
20927 24076 8784K 8136K cpu127 0 2 0:00:17 1.8% prstat/1
897 24865 916M 512M sleep 59 0 27:52:32 0.7% java/95
17511 26055 599M 285M sleep 59 0 35:08:33 0.6% java/115
12540 26055 951M 341M sleep 59 0 31:00:01 0.5% java/101
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
8 3427 73G 27G 21% 44:01:48 2.8% sunz01
0 100 465M 132M 0.1% 507:26:46 2.6% global
6 4056 86G 32G 25% 35:23:30 2.3% sunz02
Total: 13382 processes, 36594 lwps, load averages: 9.11, 9.27, 9.47
Using above command "prstat -Z" we can monitor the server process utilization in every 5 second. This command is show you the global zone & their local zone process utilization only.
If you want to only specific zone process utilization then you can use the below command.
[sun]# prstat -z sun01
This command output show you only process utilization of specific zone only.
Note:
-Z Reports information about processes and zones.
-z Reports information about a particular zone.
You can use the below syntax to monitor the Global zone as well as only specific zone.
No comments:
Post a Comment