Solaris offers several tools for taking “snapshots” of system behavior. Although you can capture their output in files for later analysis, the tools listed below are primarily intended for monitoring system behavior in real time:
The iostat -x 60 command reports disk performance statistics at 60-second intervals.
Watch the %b column to see how much of the time each disk is busy. For any disk busy more than 20% of the time, pay attention to the service time as reported in the svct column. Other columns report the I/O operation rates, the amount of data transferred, and so on.
The vmstat 60 command summarizes virtual memory activity and some CPU statistics at 60-second intervals.
Monitor the sr column to keep track of the page scan rate and take action if itis too high. Note that "too high" is very different for Solaris 8 and 9 than for earlier releases. Watch the us, sy, and id columns to see how heavily the CPUs are being used. Remember that you need to keep plenty of CPU power in reserve to handle sudden bursts of activity. Also keep track of the r column to see how many threads are contending for CPU time, if this remains higher than about four times the number of CPUs, reduce the server's concurrency.
The mpstat 60 command gives a detailed look at CPU statistics, while the netstat -i 60 command summarizes network activity.