[TOOL] Shell Check Memory Usage (15 seconds each time, 100 times in total)

Introduce

Essential Information

Author: Mingyu Zhu
Name: view the process using swap
Function: view the process using swap

Usage

1. Add execution permission to this script
2. Execute the script

Script

#!/bin/bash

i=1

while [ $i -le 100 ]
do free -m
        sleep 15
        let i=i+1
done