Linux performance diagnostic tool command set

Source: Internet
Author: User

# View the current system loaduptime # view the system status and system resource usage of each process top # visually display the CPU usage htop # view the load information of each CPU mpstat-p all 1 # Every 1 second view disk IO statistics iostat-xkdz 1 # view virtual memory usage information every second vmstat 1 # view memory usage statistics free # view network usage information nicstat-z 1 # dstat 1, an optimized tool similar to vmstat, # view the system activity status, for example, system paging statistics, block device IO statistics, etc. sar # view network connection status netstat-s # view process resource usage information pidstat 1 pidstat-d 1 # view system call information of a process-p is followed by process id, -System Call time after the tttT Process System strace-tttT-p 12670 # Calculate the system call information output by input/output from IO devices strace-c dd if =/dev/zero of =/dev/ null bs = 512 count = 1024 k # tcpdump view network packet tcpdump-nr/tmp/out. tcpdump # block device read/write event information statistics btrace/dev/sdb # iotop view IO operation statistics of a process iotop-bod5 # slabtop view Kernel slab Memory distributor usage information slabtop-SC # system parameter settings sysctl-a # statistical information of system performance indicators perf stat gzip file1 # view system cpu activity status perf record-a-g-F 997 sleep 10


Github: https://github.com/zhwj184/shell-work/blob/master/performancetool.sh from your own


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.