1. Review the process consumes bandwidth - Nethogs
Nethogs is a network traffic monitoring tool at a terminal can visually display the bandwidth occupied by each process.
Prerequisites: Installing c ++ environment
yum install -y gcc-c++ libpcap-devel.x86_64 libpcap.x86_64 ncurses*
Nethogs install plug-in methods:
git clone https://github.com/raboof/nethogs
cd nethogs
make && make install
After installation, the default path is / usr / local / sbin / nethogs
Use nethogs command:
Run directly nethogs can view the bandwidth of the current process
Test to identify bandwidth-intensive program on eth0
2. Hard disk read performance test - IOZone
IOZone read and write performance is a Linux file system performance testing tool to test different operating systems file system
Tools Download: http: //www.iozone.org/src/current/
wget http://www.iozone.org/src/current/iozone3_487.tar
Decompression: tar -xzvf /iozone3_487.tar
cd iozone3_487/src/current
Installation: make linux
测试:./iozone -a -n 512m -g 4g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
Note: The minimum test file 512M 4G test until the test to read, write, and Strided Read local test under mnt, generate Excel files...
iozone use:
-
-a fully automatic mode
-
-n set minimum file size (Kbytes) of the automatic mode.
-
-g automatic mode is set using the maximum file size Kbytes.
-
-i to specify which tests to run.
-
-f 指定测试文件的名字完成后自动删除
-
-R 产生 Excel 到标准输出
-
-b 指定输出到指定文件上
3. 实时监控磁盘 IO—IOTop
IOTop 命令是专门显示硬盘 IO 的命令, 界面风格类似 top 命令
yum install iotop -y
测试:iotop
4. 网络流量监控 - IPtraf
IPtraf 是一个运行在 Linux 下的简单的网络状况分析工具
yum install iptraf
测试:iptraf-ng
5.网络流量监控 - IFTop
iftop 是类似于 linux 下面 top 的实时流量监控工具
下载地址:http://www.ex-parrot.com/~pdw/iftop/
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
解压:tar -xzvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make && make install
测试:iftop
-
TX:发送流量
-
RX:接收流量
-
TOTAL:总流量
-
Cumm:运行 iftop 到目前时间的总流量
-
peak:流量峰值
-
rates:分别表示过去 2s 10s 40s 的平均流量
6. 安全扫描工具 - NMap
NMap 是 Linux 下的网络连接扫描和嗅探工具包用来扫描网上电脑开放的网络连接端
yum install nmap -y
测试: