The Linux fetch process consumes the top 10 cpu/memory processes

Source: Internet
Author: User

1. The Linux down-fetch process consumes the highest CPU of the top 10 processes
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|head

PS Auxw|head-1;ps auxw|sort-rn-k3|head-10

2.linux the top 10 processes taking up memory (MEM)
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +4|head

PS Auxw|head-1;ps auxw|sort-rn-k4|head-10

3. The top 10 processes that use the most virtual memory

PS Auxw|head-1;ps auxw|sort-rn-k5|head-10

4. You can also try

PS Auxw--sort=rss

PS Auxw--sort=%cpu

5. Take a look at a few parameter meanings

Memory utilization of the%MEM process

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 or the size of the actual memory (RSS is the "resident set size" meaning physical memory used)

TTY associated with a process terminal (TTY)

Serial port terminal (/DEV/TTYSN)

Pseudo Terminal (/dev/pty/)

Control Terminal (/dev/tty)

Console Terminal (/dev/ttyn,/dev/console)

Virtual Terminal (/dev/pts/n)

STAT Check Status: The process state is represented by a character, such as R (running is running or ready to run), S (sleeping Sleep), I (Idle idle), Z (Zombie), D (non-disruptive sleep, usually I/O), P (Waiting for swap pages), W (swap out, Indicates the current page is not in memory), N (Low priority Task) T (terminate termination), W has no resident pages

D Non-interruptible uninterruptible sleep (usually IO)

R is running, or the process in the queue

S is in a dormant state

T stop or be traced

Z Zombie Process

W enters memory swap (invalid starting from kernel 2.6)

X dead Process

< high-priority

N Low-priority

L Some pages are locked into memory

s contains child processes

+ Process Group located in the background;

L multi-threading, Clone thread multi-threaded (using Clone_thread, like NPTL pthreads do)



The Linux fetch process consumes the top 10 cpu/memory processes

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.