This is a creation in
Article, where the information may have evolved or changed.
Recently in troubleshooting TIDB performance problems, through the tool found some problems, feel the need to record, so that they continue to deeply understand the use of relevant tools, but also let the students on similar issues when not stepping on the pit.
Using Iostat to locate disk problems
In a performance test cluster, we chose the AWS C3.4xlarge model, primaril
How to install and uninstall software in Centos yum install yum-yinstallhttpd when multiple similar software is installed in yum-yinstallhttpd * when multiple non-similar software is installed in Centos- yinstallhttpdphpphp-gdmysql how to use yum-yremovehttpd to uninstall multiple yum installation and uninstall software in Centos
Installation method
When installing a software
Yum-y install httpd
When installing similar software
Yum-y install httpd *
When multiple non-similar software are i
Linux can use vmstat,
The most important columns are bi and bo. they monitor the movement of input and output blocks with disk subsystems,
It is important to have a baseline to mark changes;
Iostat command
Performance problems can be encountered when too program files are opened, read and written
To, then closed repeatedly. This cocould become apparent as seek times (the time it takes
Move to the exact track where the data is stored) start to incre
How Yum installs and uninstalls software in CentOSInstallation methodWhen installing a softwareYum-y Install httpdWhen installing multiple similar softwareYum-y Install httpd*When installing multiple non-similar softwareYum-y Install httpd php php-gd mysqlWhen uninstalling a softwareYum-y Remove httpdWhen uninstalling multiple similar softwareYum-y Remove httpd*When uninstalling multiple non-similar softwareYum-y Remove httpd php php-gd MySQLAnd there's a very good usage.If I want to execute
This script references the official Nagios document https://exchange.nagios.org/and its code refinement and shift values, the original code is run under Ksh, the way to define the array is different from bash, in addition, in order to reflect the CPU's busy level, The average of the Vmstart command is captured and printed. In order to facilitate everyone to download, special will be included in my GitHub.#!/bin/bash#cpuutilizationstatisticspluginfornagiosiostat= "/usr/bin/
Java performance analysis tools, Part 1: Operating System Tools, java operating systemsIntroduction
The premise of performance analysis is that the running status of the application and the running environment of the application are displayed more directly in a visual manner. How can we achieve this visual display? We need to use the Integrated Program monitoring tool in the operating system and the built-in monitoring and analysis tool in Java to analyze the performance of Java programs. This a
received from a block device, units: Blocks/secSystem:In: Number of interrupts per second, including clock interruptsCS: Number of context switches per secondCpu:US: User CPU Usage timeSY: Kernel CPU System usage timeID: Idle Time4.iostatIostat [-c] [-d] [-h] [-n] [-K |-m] [-t] [-v] [-X] [-z] [device [...] | ALL] [-p [device [,...] | all] [interval [count]]Iostat-d-K 2The parameter-D indicates that the device (disk) usage status is displayed; k Some
The latest I/O statistics Tool in CentOS
As a Linux system administrator, it is essential to count various types of IO. Iostat is obviously the most important statistical tool. However, iostat is not the focus of this article, because there are already a lot of tutorials on the network for your reference. Here, I want to introduce some other statistical tools to meet different requirements.Iostat
interactive real-time linux Process Monitoring Tool. It is very similar to the top command, but it has more features, such as user-friendly management of processes, shortcut keys, vertical and horizontal display processes and so on. Htop is a third-party tool that is not included in the linux system. You need to install it using the YUM package management tool. For more information about installation, see the following.
#htop
Htop command example
For Htop installation, read: Install Htop in Li
received from a block device, units: blocks/secSystem:In: number of interrupts per second, including clock interruptsCs: number of context switches per secondCpu:Us: User CPU Usage timeSy: Kernel CPU System usage timeId: Idle Time4.iostatIostat [-c] [-d] [-h] [-n] [-k |-m] [-t] [-v] [-x] [-z] [device [...] | all] [-p [device [,...] | all] [interval [count]]Iostat-d-k 2The parameter-d indicates that the device (disk) usage status is displayed; K some
free Vmstat mpstat iostat SAR kill Chkconfig Last system security-related commands (13) passwd su sudo umask chgrp chmod chown chattr lsattr ps whoami View System User login Information Command (6) W who users last Lastlog Fingers view hardware-related commands (6) Ethtool Mii-tool Dmidecode DMESG Lspci Other (14) chkconfig Echo Yum Watch alias Unalias date Clear History Eject time Nohup NC xargs Advanced Linux Command memory for monitoring physical
If your Linux server suddenly has a sudden increase in load, warning text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time? Look at the Netflix performance Engineering team's blog post to diagnose machine performance issues with 10 commands in a minute.OverviewYou can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
If your Linux server suddenly has a sudden increase in load, alarm text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time? Look at the Netflix performance Engineering team's blog post to diagnose machine performance issues with 10 commands in a minute.OverviewYou can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
command (6)Nmap lsof Route mail Mutt nslookup dig host traceroute tcpdump
10. Commands on disk and file system (10)Mount Umount DF du fsck dd dumpe2fs dump fdisk parted mkfs partprobe e2fsck mkswap swapon sync resize2fs
11. Commands to shut down and view system Information (3)Shutdown Halt Init
12, System Management related commands (8)Uptime Top free Vmstat mpstat iostat SAR (sysstats) chkconfig
13, system security-related co
interactive and real-time Linux process monitoring tool. This command is very similar to the top command, but it is more versatile, such as friendly user interface process management, shortcut keys, vertical and horizontal view processes, and more. Htop is a third-party plug-in tool that you need to install on a Linux system using the Yum Package management tool.Htop Installation Instructions: Installing Htop in Linux (Linux process monitoring)7.lotop--Monitoring Linux disk I/OLotop is similar
Key 10 commands to check Linux server performanceOverviewYou can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
IOSTAT-XZ 1
Free-m
Sar-n DEV 1
Sar-n tcp,etcp 1
Top
Some of these commands require the installation of sysstat packages, some of which are provided by the PROCPS package. The output of thes
and memory is plentiful650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/67/wKiom1UH39SSLni5AACjbZqfhMk514.jpg "title=" 4.png " alt= "Wkiom1uh39sslni5aacjbzqfhmk514.jpg"/>2, DstatSee which process consumes the most memoryInput Dstat Lcmd-top-memSee, the puppet consumes the most memory 59m (normal)650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/61/wKioL1UH4Qqif8aqAALF6D0B3MU488.jpg "title=" 5.png " alt= "Wkiol1uh4qqif8aqaalf6d0b3mu488.jpg"/>3. TopAfter entering top, ent
Vmstat mpstat iostat SAR kill Chkconfig LastSystem security-related commands (13)passwd su sudo umask chgrp chmod chown chattr lsattr PSWhoAmIView System User Login Information command (6)W who's users last Lastlog fingersView hardware-related commands (6)Ethtool Mii-tool Dmidecode DMESG LspciOther (14)Chkconfig Echo Yum Watch alias Unalias date Clear History ejectTime Nohup NC xargsAdvanced Linux commands for monitoring physical componentsMemory: To
1. First use Iostat to view the reading and writing of each disk, the virtual machine disk is Dm-id for the name display.
The code is as follows
Copy Code
Iostat 2 2
#取样两次, 2 seconds apart each time.
2. Find the VM with TPS greater than 20 and sort by size:
The code is as follows
Copy Code
Iostat
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.