servercheap-server-monitoring

Monitor your server with VMStat and IOstat

5 min read If vmstat and iostat commands are not available on your box, please install sysstat package. The vmstat, sarand iostat commands are the collection of package included in sysstat – the system monitoring tools. The iostat generates reports of CPU & all device statistics. You may download and install sysstat using source tarball from link sysstat, but we recommend installing through YUM command. Install Sysstat in Linux # yum -y install sysstat vmstat – Summary information of Memory, Processes, Paging etc. iostat – Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. 1. List Active and Inactive Memory In the below example, there are six columns. The significant of the columns are explained in man page of vmstat in details. Most important fields are free under memory and si, so under swap column. [root@localhost ~]# vmstat…