Inux the most CPU-and memory-intensive processes

Source: Internet
Author: User

The top 10 processes that occupy the most 1.CPU:
PS Auxw|head-1;ps auxw|sort-rn-k3|head-10
2. Top 10 processes with the most memory consumption
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-disruptive     uninterruptible sleep (usually IO)  
    R   &NBS p;  , running, or process in queue;
        in hibernation  
    T     Stop or be tracked  
    Z     zombie process  
    W     Enter memory swap (invalid starting from kernel 2.6)  
    X   ;   dead process  

    <     high-priority  
    N     low-priority  
        Some pages are locked into memory  ,
    s     contains sub-process  
    +     in Background process Group; &NBSP
        Multi-threading, Clone thread  multi-threaded (using Clone_thread, like NPTL pthreads do) &n BSP;

Inux the most CPU-and memory-intensive 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.