Thursday, December 17, 2009

Identifying Linux Bottlenecks

How Do I Install sar?

Type the following command:
# yum install sysstat -y

Configuration Files

Edit /etc/sysconfig/sysstat file specify how long to keep log files in days, maximum is a month:
# vi /etc/sysconfig/sysstat
Sample outputs:

# keep log for 28 days
# the default is 7

# chkconfig sysstat on
# service sysstat start

$ wget

or Download

$ unzip

$ cd kSar-5.0.6/
$ sh

How Do I Generate sar Graphs Using kSar?

First, you need to grab sar command statistics. Type the following command to get stats, enter (type it on your server):

[server1 ]# LC_ALL=C sar -A > /tmp/
Post a Comment