. # Htop htop Command example
7.iotop-Monitoring Linux disk I/OThe Iotop command is also very similar to the top command and the htop program, but it has the ability to monitor and display real-time disk I/O and process statistics. This tool is useful when you are looking for specific processes and lots of disk read and write processes. # IotopExamples of IOTOP commandsFor information on how to install and use Iotop, please read: Install Iotop under Linux.8.
smit userFor a large number of users, use mkuser2. Modify user attributes: smitty chuserModify user group attributes: smitty chgroup3. delete a user: smitty rmuserDelete user group: smitty rmgroup
10. Common user monitoring commandsWhoLast-Logon event and shutdown InformationLast root consoleLast | grep shutdown11. System Record FilesList System records: alog-LExample: boot bosinst nim consoleList Files: alog-o-t boot12. Installation Package: installp/smitty installp13. List the current version
remember that each parameter depends on continuous monitoring, you may not be able to know the real problem of the CPU due to short observation of the CPU. You need to view the long-term running trend to obtain an exact CPU performance information.
Iii. iostat
The following command is iostat. The iostat command (which is provided by the sysstat software package
(disk write) (kb per second)Here we set the reference value of bi + bo to 1000. If the value of bi + bo is greater than 1000 and the wa value is large, we should consider Disk Load Balancing. We can use iostat output for analysis.
5. cpu ColumnsCpu indicates the cpu usage statusThe us column shows the percentage of CPU time spent in user mode. When the value of us is high, it indicates that the user process consumes a lot of cpu time. However, if it
CPU
User % + sys %
User %+ sys % = 85%
User % + sys %> = 90%
Memory
Swap In (si) = 0Swap Out (so) = 0
Per CPU with 10 page/s
More Swap In Swap Out
Disk
Iowait %
Iowait %= 35%
Iowait % >= 50%
Where:% User: the percentage of time when the CPU is in user mode.% Sys: the percentage of time when the CPU is in system mode.% Iowait: Percentage of CPU waiting for input/output completion time.Sw
Command for viewing system status in Linux
Iostat
The iostat command details the storage subsystem. You usually use iostat to monitor the running status of the storage subsystem, and detect the slow input/output before the user notices that the server is running slowly. Believe me, you should discover these problems before the user discovers them!
Meminfo and fre
process tree uses a pid as the root node. If the pid is omitted, the tree uses init as the root node. If the user name is specified, all process trees are displayed with the process to which the user belongs as the parent process ." You can use a tree chart to classify the relations between processes. This is indeed a very effective tool (Click here ).
Pmap
In the debugging process, it is vital to understand how an application uses memory, and pmap displays relevant information when giving a p
Author: skate
Time: 2011/08/06
Install and use oswatch
1. Download and install
Oswatch is easy to install and use. Like nmon, it can be directly decompressed after download.
Oswatch collects information by calling system commands, such as PS, top, mpstat, iostat, netstat, and traceroute vmstat. Supported operating systems are Aix, Tru64, Solaris, HP-UX, Linux; of course there are also Windows VersionYou can download OS watcher User Guide [ID 30113
[Email protected] ~]# Iostat-bash:iostat:command not foundIOSTAT command is not available, first confirm Sysstat package is installed, Sysstat package includes Iostat,mpstat,sar,sa[[Email protected] ~] #yum install-y SysstatAfter the installation is complete, execute the iostat command again.Explain:AVG-CPU segment:%user: The percentage of CPU that is used to run
monitoring system for example.The combination of direct and Linux monitoring tools, the monitoring results through WebSocket directly to the Web page, due to the establishment of a long socket connection, binding Iostat standard output events, to achieve real real-time. At the same time can support the discussion of monitoring results, added a simple chat, event-based communication, chat and monitoring simultaneous transmission is completely unaffect
reason for the load to rise. Linux provides the Iostat command to understand the overhead of IO.Input iostat-x 1 command to start monitoring input and output status,-x to display all parameter information, 1 to monitor every 1 seconds, 10 for total monitoring 10 times .Where rsec/s is read, wsec/s represents write per second, the two parameters of a particularly high time to indicate that disk IO has a lot
https://help.aliyun.com/knowledge_detail/41224.html?spm=5176.7841174.2.19.uqC1as# using Iostat to view disk IO load from system latitude IO Load Viewing method
View disk IO load from system latitude using Iostat
View disk IO load from process latitude using iotop
View disk IO load from system latitude using IostatThe IO load can be viewed from the system dimension through Iostat.Ios
UID PID%usr%system%guest%cpu C PU command07:41:04 PM 0 4214 6.00 2.00 0.00 8.00 (mesos-slave07:41:04 PM 0 6521 1590.00 1.00 0.00 1591.00) java07:41:0 4 pm 0 6564 1573.00 10.00 0.00 1583.00 java07:41:04 PM 108 6718 1.00 0.00 0.00 1.00 0 snmp-pass07:41:04 PM 60004 60154 1.00 4.00 0.00 5.00 9 Pidstat^cThe Pidstat command is a bit like the top command's statistical summary of each process, but looping through a scrolling statistical summary to replace the top brush screen, which can be used for rea
machine is running stably and smoothly. If the load exceeds 16, it indicates that the server is running with some pressure.Under the top command, press SHIFT + "C" to sort the process according to CPU utilization from large to small, press shift+ "P", then sort the process by memory usage from large to small, it is easy to locate which services consume higher CPU and memory.Just having the top command is not enough, because it only shows CPU and memory usage, and there is no clear display of--i
simple overview of the different parts, including the IRQ.DSTAT[35]Dstat is intended to replace Vmstat,iostat,netstat and Ifstat. It allows you to check all system resources in real time. This data can be exported as CSV. Most importantly, Dstat allows the use of plug-ins, so it can be extended to more areas.NET-SNMP[36]SNMP is the Simple Network Management Protocol, and the Net-snmp tool suite uses this protocol to help you gather accurate informati
other virtual machine to run the actual CPU times on the task)
Common Interactive Commands:
h Help, very useful
R: Reverse Sort
X: Sort Degauliang Display (vertical column)
Y will run the process highlighting (rampage)
Shift+> or shift+
D or S: Set the refresh interval for display
F: Field management settings display fields
K:kill process 4.2 memory
Free command:
Free-m-C10-S1
-M: shown in MB, others have-k-g-B
-S: Continue to observe memory usage for how many seconds interval
-C: How many tim
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.