Process Management Tools
Process management Tools Top/htop/glances/dstat/sar
Top
is a real-time display of the current system running information of a tool
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/A7/wKioL1XqwKTBO6nKAAR7sxbLwjg532.jpg "title=" 111. PNG "alt=" wkiol1xqwktbo6nkaar7sxblwjg532.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A7/wKioL1XqwP_y0x3QAAMcxaysFJg122.jpg "title=" 22222. PNG "alt=" wkiol1xqwp_y0x3qaamcxaysfjg122.jpg "/>
Common options
-Z: Highlight
-R : Select pid, modify nice value ( -20 to 19)
-B : Navigate to a process that is running (running State )
-K : Quite kill
shift+< or > : Turn left and right to see different processes
-L: Show or hide the login or load information for the first row
-T :task/cpustats Displays CPU and process statistics in different types , or hides them
-M : Displays memory and swap information in different types , or hides
Htop
Htop Displays process-related information in real time , as in top
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/AB/wKiom1XqwBjTZllaAAMcxaysFJg301.jpg "title=" 22222. PNG "alt=" wkiom1xqwbjtzllaaamcxaysfjg301.jpg "/> |
Characteristics
@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ F2 Key Custom Modify front-end display
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Modify the front-end display color, graphically display, text format display, only show a user's process ...
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/A7/wKioL1XqwmnRFDvqAASBSbY38R8485.jpg "title=" 44444444444444.png "alt=" Wkiol1xqwmnrfdvqaasbsby38r8485.jpg "/> |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@F3 Search process Location Process
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/AB/wKiom1XqwHqzZCfFAAbl8ojhenI524.jpg "title=" 5555555555.png "alt=" Wkiom1xqwhqzzcffaabl8ojheni524.jpg "/> |
F4 Find and display only matching content
@@@@@@@@@@@@@@@@@@@@@@@@@@@
@F5 show process diagram in tree form
@@@@@@@@@@@@@@@@@@@@@@@@@@@
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/AB/wKiom1XqwNfj48i7AAb81ASo_II680.jpg "title=" 666666666666666666.png "alt=" Wkiom1xqwnfj48i7aab81aso_ii680.jpg "/> |
Dstat
Multi-purpose tools generate system resource statistics Installation Yum Install Dstat Common options -C: Display CPU-related information; -C #,#,..., Total -D: Display disk related information; -D Total,sda,sdb,... -G: Display page related statistics; -M: Display memory related statistics; -N: Display network related statistics; -P: Show process-related statistics; -R: Displays statistics related to IO requests; -S: Displays swapped related statistics;
--TCP Show TCP connection Status --UDP Show UDP Connection Status --TOP-CPU: Displays the most CPU-intensive processes; --top-io: Shows the process that most consumes IO; --top-mem: Shows the most memory-intensive processes; --top-lantency: Shows the process with the most delay;
|
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/A8/wKioL1Xq3Yqiz56QAAD3Fuqw57M389.jpg "title=" Cpu.png "alt=" Wkiol1xq3yqiz56qaad3fuqw57m389.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/AC/wKiom1Xq27TgutduAAC-dFLnCFg054.jpg "title=" Disk.jpg "alt=" wkiom1xq27tgutduaac-dflncfg054.jpg "/>650" this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/ 72/ac/wkiom1xq27tgutduaac-dflncfg054.jpg "title=" disk.jpg "alt=" wkiom1xq27tgutduaac-dflncfg054.jpg "/>650" this.width=650, "src=" http://s3.51cto.com/wyfs02/M01/72/A8/wKioL1Xq3iKCkWr8AAGDei1zmXM344.jpg "title=" memroy.jpg "alt=" Wkiol1xq3ikckwr8aagdei1zmxm344.jpg "/>
View the process that consumes the most CPU
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/AC/wKiom1Xq3aaB4kMWAAEb4OS-4NY559.jpg "title="-- Top-cpu.jpg "alt=" wkiom1xq3aab4kmwaaeb4os-4ny559.jpg "/> The most I/O-consuming process
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/AC/wKiom1Xq3kPxOk-6AAErmCOVYA4493.jpg "title=" Top-io.jpg "alt=" wkiom1xq3kpxok-6aaermcovya4493.jpg "/> The most memory-consuming process
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/A8/wKioL1Xq4R3gP7oTAAD2JJmry5I368.jpg "title="- Top-mem.jpg "alt=" wkiol1xq4r3gp7otaad2jjmry5i368.jpg "/>SAR
Collect, report, or save current activity information of the system Installation Yum install-y sysstat-10.1.5-7.el7.x86_64 _______________________________________________________________________________ Common options: -A: Sum of all reports -U: Output statistics about CPU usage -V: Output statistics for inode, files, and other kernel tables -D: Output activity information for each block device -r: Output memory and swap space statistics -B: Display statistics for I/O and transfer rates -A: File read and write status -C: Output process statistics, number of processes created per second -r: Output memory page statistics -Y: terminal equipment activity situation -W: Output system Exchange activity information
|
####################
#CPU资源
####################
[[email protected] ~]# sar-u 1 1//Collect CPU information: Collect the interval 1 seconds
Linux 3.10.0-229.el7.x86_64 (localhost.localdomain) 09/06/2015 _x86_64_(4 CPU)
05:08:00 AM CPU%user%nice%system%iowait%steal%idle 05:08:01 AM All 0.25 0.00 0.50 0.00 0.00 99.25 Average:all 0.25 0.00 0.50 0.00 0.00 99.25 | | | | | | | | | | | |_cpu Idle Percentage | | | | | | | | | |_ using virtualization to steal time | | | |_ Wait I/o percentage, if this data occupancy rate remains high, the disk device bottleneck | | | | | |_ Kernel space usage percentage | |_ Adjust the percentage of nice value consumption | |_ Percentage of user space |
###################
# Collect memory Resources
###################
[Email protected] ~]# Sar-r 1 1 Linux 3.10.0-229.el7.x86_64 (localhost.localdomain) 09/06/2015 _x86_64_(4 CPU)
05:38:15 AM kbmemfree kbmemused%memused kbbuffers kbcached kbcommit%commit kbactive kbinact kbdirty 05:38:16 AM 1575980 459400 22.57 792 241744 281604 6.81 192444 117636 0 average:1575980 459400 22.57 792 241744 281604 6.81 192444 117636 0
|
Common process management tools