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
HISTORY=28

# chkconfig sysstat on
# service sysstat start

$ wget http://ksar.atomique.net/kSar/kSar-5.0.6.zip

or Download

http://ksar.atomique.net/kSar/kSar-5.0.6.zip

$ unzip kSar-5.0.6.zip

$ cd kSar-5.0.6/
$ sh run.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/hostname-sar.data.txt

No comments: