Linux Performance Diagnostics Tool command set

Source: Internet
Author: User

#查看当前系统loaduptime # View System State and system resource usage per process top# Visualize CPU Usage htop# View the load information for each CPU mpstat-p All # View the statistics of disk IO every 1 seconds iostat- Xkdz # View the usage information of virtual memory every second Vmstat # View memory usage Statistics free# View network usage information nicstat-z a vmstat-like display optimization tool Dstat # View system activity status, such as system paging statistics, Block device IO statistics etc sar# Network connection Status View netstat-s# process Resource Usage information view Pidstat 1pidstat-d # View system call information for a process after-P is the system call time after the process ID,-TTTT process system STRACE-TTTT -P 12670# Statistics IO device input/output system call Information strace-c DD If=/dev/zero of=/dev/null bs=512 count=1024k#tcpdump View network packet tcpdump-nr/tmp/ out.tcpdump# block Device Read-write event information statistics BTRACE/DEV/SDB #iotop查看某个进程的IO操作统计信息iotop-bod5#slabtop View the usage information of the kernel slab memory allocator slabtop-sc# System parameter Settings sysctl-a# system performance Statistics perf STAT gzip file1# system CPU Activity Status View perf record-a-g-f 997 sleep 10


From his own github:https://github.com/zhwj184/shell-work/blob/master/performancetool.sh.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.