Top commands for linux system performance monitoring

Source: Internet
Author: User
Linux system performance monitoring top command 1. top command is used to monitor system resources, including memory, swap partition, and CPU usage. It regularly updates the display content top-09: 25: 38up7days, 3 users, loadaverage: 0.15, 0.08, 0.02ta..linux system performance monitoring top command 1. top command is used to monitor system resources, including memory, swap partition and CPU usage. It regularly updates the display content top-09:25:38 up 7 days, 3 users, load average: 0.15, 0.08, 0.02 Tasks: 187 total, 1 running, 186 sleeping, 0 stopped, 0 zombieCpu (s): 0.8% us, 1.6% sy, 0.0% ni, 97.6% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% stMem: 8053804 k total, 6682636 k used, 1371168 k free, 101200 k buffersSwap: 4200956 k total, 2044976 k used, 2155980 k free, 731052 k cached www.2cto.com pid user pr ni virt res shr s % CPU % MEM TIME + COMMAND 3031 root 20 0 1542 m 505 m 2336 S 4 6.4. 61 java 4476 qsp 20 0 1409 m 942 m 4124 S 1 12.0. 21 java 4809 qsp 20 0 1429 m 193 m 3076 S 1 2.5: 188 java 06.23 qsp 20 0 5115 m 1563 m 969 S 1 4204 110:18. 62 java 5361 qsp 20 0 1471 m 563 m 4080 S 1 7.2. 17 java 5589 qsp 20 0 1438 m 91 m 2316 S 1 1.2 11:33. 49 java 5690 qsp 20 0 1496 m 132 m 4508 S 1 1.7. 69 java 3097 dcache 2 0 0 1905 m 41 m 1460 S 1 0.5 355: 46.06 dcsvr 65 root 20 0 0 0 S 0 0.0. 15 kondemand/3 3082 dcache 20 0 318 m 5848 1116 S 0 0.1 51: 10.78 dcagent 16817 zxccweb 20 0 1313 m 182 m 7624 S 0 2.3. 51 java 25685 root 20 0 8772 1252 856 R 0 0.0. 50 top 1 root 20 0 10376 664 S 0 632. 40 init 2 root 20 0 0 0 S 0 0.0. 00 kthreadd 3 root RT 0 0 0 S 0 0.0 0 00. 58 migration/0 4 root 20 0 0 0 0 S 0 0.0 0 15. 61 ksoftirqd/0 5 root RT 0 0 0 0 S 0 0.0. 66 migration/1 6 root 20 0 0 0 0 S 0 0.0 0 05. 57 ksoftirqd/1 The first line is the same as the W command, that is, the user information [root @ penguin ~] # W www.2cto.com 08:46:30 up, 3 users, load average: 0.33, 0.70, 0.49 the second line indicates execution of all processes. The third line indicates CPU usage. The fourth and fifth lines indicate memory usage and swap partition usage. Other content indicates the list of processes in progress (dynamically displayed) to terminate the top command, you can sort processes by the default CPU usage by the Q key, and sort the processes by memory usage (by the M key) and execution time (by the T key.
2. when top monitoring is executed by a user to be determined, the process of all users in the system will be monitored. if you only want to monitor the user to be determined, press the U key, and specify the user account to press enter top-09:02:30 up, 3 users, load average: 0.01, 0.06, 0.18 Tasks: 115 total, 1 running, 114 sleeping, 0 stopped, 0 zombieCpu (s): 0.3% us, 1.7% sy, 0.0% ni, 98.0% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% stWhich user (blank for all ): haiPID user pr ni virt res shr s % CPU % mem time + COMMAND 9045 hai 20 0 5248 1420 1192 S 0.0 0: 00. 07 bash
3. to terminate a process in execution, press K and enter the PID to be deleted. Or, determine the process ID to terminate and enter the kill-9 PID prepared by aniyo.

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.