
■Thempstat 60 command gives a detailed look at CPU statistics, while the netstat -i 60
commandsummarizes network activity.
Long-TermSystemMonitoring
Itis important not only to "spot-check"system performance with the tools mentioned above,
butto collect longer-term performance histories so you can detect trends. If nothing else, a
baselinerecord of a system performing well might help you gure out what has changed if the
systemstarts behaving poorly. Enable the system activity reporting package by doing the
following:
■Editthe le /etc/init.d/perf and remove the #comment characters from the lines near
theend of the le. For Solaris 10, run the following command:
svcadm enable system/sar
■Runthe command crontab -e sys and remove the #comment characters from the lines
withthe sa1 and sa2 commands. You might also wish to adjust how often the commands
runand at what times of day depending on your site's activity prole (see the crontab man
pagefor an explanation of the format of this le).
Thiscauses the system to store performance data in les in the /var/adm/sa directory,
whereby default they are retained for one month. You can then use the sar command to
examinethe statistics for time periods of interest.
“Intelligent”Monitoring
TheSE toolkit is a freely downloadable software package developed by Sun performance
experts.In addition to collecting and monitoring raw performance statistics, the toolkit can
applyheuristics to characterize the overall health of the system and highlight areas that might
needadjustment. You can download the toolkit and its documentation from the following
location:
http://www.sunfreeware.com/setoolkit.html
Solaris 10 Platform-SpecicTuning InformationDTraceis a comprehensive dynamic tracing framework for the Solaris Operating Environment.
Youcan use the DTrace Toolkit to monitor the system. It is available from the following URL:
http://www.opensolaris.org/os/community/dtrace/dtracetoolkit/
Solaris10 Platform-SpecicTuning Information
Chapter4 • Platform-Specic Issues and Tips 95