How to view CPU-consuming processes in aix

Source: Internet
Author: User

How to view CPU-consuming processes in aix first check who has the largest CPU usage: display the first 10 processes that have accumulated CPU usage # ps-e | head-n 1; ps-e | grep-v "TIME | 0: "| sort + 2b-3-n-r | head-n 10 displays the first 10 processes that currently occupy CPU time # ps-ef | head-n 1; ps-ef | grep-v "C | 0: 00" | sort + 3b-4-n-r | head-n 10 Aix command: list the first few processes using memory and Cpu (1) display 10 processes that consume the most cpu # ps aux | head-1; ps aux | sort-rn + 2 | head-10 (2) displays 10 processes that consume the most memory # ps vx | head-1; ps vx | grep-v PID | sort-rn + 6 | head-10 (3) processes with the largest number of page breaks # ps vx | head-1; Ps vx | grep-v PID | sort-rn + 4 | head-10 (4) displays 10 processes that consume the most storage space # ps aux | head-1; ps aux | sort-rn + 3 | how does head-10 monitor the memory usage of processes (AIX) There are many tools for AIX to monitor the memory usage of processes? In my opinion, nmon is a convenient tool, svmon, in which svmon is an AIX tool that requires root permission for execution. It can monitor detailed memory usage information of processes, such as svmon-P pid (process PID to be monitored) -I 1 (refresh once per second) | process memory Analysis in grep pid AIX the ps v tool or svmon tool can be used in AIX to analyze process memory. Ps v command is a tool of ps command. Note that "-" is not added before v. The ps v tool can be used in any AIX operating system. For example: # ps-lfp 13288 f s uid pid ppid c pri ni addr sz wchan stime tty time cmd 240001 A oracle 13288 1 0 60 20 1ba2f 34032 Nov 03-0: 06ora_pmon_DEV # ps v 13288 pid tty stat time pgin size rss lim tsiz trs % CPU % mem command 13288-A 0:08 225 5616 13904 32768 28420 13512 0.0 1.0ora _ pmon_DEV from ps COMMAND to see sz is 34 M. The ps v command shows that rss is 13904 and TRS is 13512. The memory used by the process is RSS-TRS = 392 K (ps v sees the memory unit is K ). Svmon can be used to view more information. The result is consistent with ps v. For example: # svmon-P 23288 running Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 23288 ora_pmon_V8 29598 1451 182 16560 N Vsid Esid Type Description Inuse Pin Pgsp Virtual AddrRange 1781 3 work shmat/mmap 11824 0 0 118240 .. 24700 1761 1 pers code, large file/dev 9681 0--0 .. 9680 0 0 work kernel seg 3982 1450 182 33900 .. 21804: 65474 .. 65535 18018 d work shared library text 2852 0 0 1580 .. 65535 4764 2 work process private 1127 1 0 1127 these command combinations are helpful for managing the RS/6000 AIX system: (1) display 10 processes that consume the most CPU: # ps aux | head-1; ps aux | sort-rn + 2 | head-10 (2) displays 10 processes that consume the most storage space: # ps aux | head-1; ps aux | sort-rn + 3 | head-10 (3) displays the penalty processes in the system in sequence: # ps-eakl | head-1; ps-eakl | sort-rn + 5 (4) display processes in the system in priority order: # ps-eakl | sort-n + 6 | head (5) display the first 10 processes in the system in the order of processing time: # ps vx | head-1; ps vx | grep-v PID | sort-rn + 3 | head-10 (6) display the first 10 processes in the system in the order of actual memory usage: # ps vx | head-1; ps vx | grep-v PID | sort-rn + 6 | head-10 (7) display the first 10 processes in the system in the order displayed on the switch-in page: # ps vx | head-1; ps vx | grep-v PID | sort-rn + 4 | head-10

Related Article

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.