View the processes that consume the most CPU and memory in linux
Source: Internet
Author: User
View the processes that consume the most CPU and memory in linux. top 10 processes with the most CPU usage: psauxw | head-1; psauxw | sort-rn-k3 | head-102. top 10 processes with the most memory consumption psauxw | head-1; psauxw | sort-rn-k4 | head-103. virtual memory...
View the processes that consume the most CPU and memory in linux. top 10 processes with the most CPU usage: ps auxw | head-1; ps auxw | sort-rn-k3 | head-102. top 10 processes with the most memory consumption ps auxw | head-1; ps auxw | sort-rn-k4 | head-103. top 10 processes with the most virtual memory used ps auxw | head-1; ps auxw | sort-rn-k5 | head-10 4. you can also try www.2cto.com ps auxw -- sort = rssps auxw -- sort = % cpu 5. let's take a look at the meanings of several parameters. % MEM process memory usage MAJFL is the major page fault count, the size of the virtual memory used by the VSZ process. the size of the resident set used by the RSS process is small or the actual memory size (RSS is the "resident set size" meaning physical memory used) TTY terminals associated with processes (tty) serial port terminals (/dev/ttySn) pseudo terminals (/dev/pty/) control terminals (/dev/tty) console terminal (/dev/ttyn,/dev/console) virtual terminal (/dev/pts/n) STAT check status: the process status is represented by characters, such as R (running or ready to run), S (sleeping sleep), I (idle), Z (dead), D (uninterruptible sleep, usually I/O), P (waiting for the switching page), W (switching out, indicating that the current page is not in memory), N (low-priority task) T (terminate termination), W has no resident pages www.2cto.com D cannot be interrupted Uninterruptible sleep (usually IO) R is running, or process S in the queue is in sleep state T stop or be tracked Z botnets W into memory swap (invalid from kernel 2.6) X dead process
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.