Solaris系统性能相关log
Untitled
Directory /var/adm/sa -
1. Check memory usage and CPU usage
sar - system activity reporter
-r Reports unused memory pages and disk blocks: freemem average pages avail- able to user processes. freeswap disk blocks avail- able for page swap- ping. -u Reports CPU utilization (the default): %usr, %sys, %wio, %idle portion of time running in user mode, running in system mode, idle with some process waiting for block I/O, and oth- erwise idle. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the processor set of the pool to which the zone is bound. -v Reports status of process, i-node, file tables: proc-sz, inod-sz, file-sz, lock-sz entries/size for each table, evaluated once at sampling point. ov overflows that occur between sampling points for each table.
e.g.
sar -r -f sa06 | less sar -u -f sa06 | less
2. prstat
3. vmstat
4. svcs -xv [process name]
-v Without -x, displays verbose columns: STATE, NSTATE, STIME, CTID, and FMRI. With -x, displays extra information for each explanation. -x Displays explanations for service states. Without arguments, the -x option explains the states of services which: o are enabled, but are not run- ning. o are preventing another enabled service from running.
e.g.
solaris-52c% svcs -xv svc:/application/management/snmpdx:default (Sun Solstice Enterprise Master Agent) State: disabled since September 28, 2011 03:50:55 PM CST Reason: Disabled by an administrator. See: http://sun.com/msg/SMF-8000-05 See: man -M /usr/share/man/ -s 1M snmpdx Impact: 1 dependent service is not running: svc:/application/management/dmi:default solaris-52c% svcs -xv cron svc:/system/cron:default (clock daemon (cron)) State: online since September 28, 2011 03:56:07 PM CST See: man -M /usr/share/man -s 1M cron See: man -M /usr/share/man -s 1 crontab See: /var/svc/log/system-cron:default.log Impact: None.