Installation

Install Sysstat Package

(or)

(or)

sysstat – daemon

Using sar we can monitor performance of server(load, memory etc…) in real time.

sar -q

Report load average. (fetch data from /var/log/sa(sysstat)/sa*, where sa* represent the date like sa10,sa11,sa12etc.).

Examples,

sar -r

Report memory details.

Examples,

Examples,

-r and -q are the commonly using SAR switches, Please refer other switches too (-u, -v, -P, -d, -betc…)