sar command : The sar command is useful to monitor performance for cpu, memory and i/o. #sar -u 2 6 SunOS testing 5.10 Generic_150400-11 sun4u 09/22/2015 11:14:42 %usr %sys %wio %idle 11:14:44 11 3 0 86 11:14:46 20 2 0 79 11:14:48 21 4 0 75 11:14:50 20 3 0 76 11:14:52 17 4 0 79 11:14:55 16 1 0 83 Average 18 3 0 80 Display the accumulated time CPU usage for every 2 seconds and 6 times. You should focus on %idle to see cpu load, when higher less cpu load. #sar -r 2 6 Display memory free and used every 2 second and 5 times. You should focus on kbmemfree and kbmemused for free and used memory. SunOS testing 5.10 Generic_150400-11 sun4u 09/22/2015 11:16:02 freemem freeswap 11:16:04 1298575 4204592 11:16:06 1298238 4199072 11:16:08 1298502 4211904 11:16:10 1298812 4219800 11:16:12 1298712 3923088 11:16:14 1298294 4
The Oracle, Unix and Technology World