View the most CPU-and memory-intensive processes under Linux

Source: Internet
Author: User

View the most CPU-and memory-intensive processes under Linux

&NBSP;1.CPU most occupied Top 10 processes: PS auxw|head-1;ps auxw|sort-rn-k3|head-102. Top 10 processes with memory consumption PS Auxw|head-1;ps auxw|sort-rn-k4|h ead-103. The top 10 processes for virtual memory use 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. Take a look at a few parameters meaning  %mem the memory footprint of the process MAJFL is the major page fault process used by the virtual size of the RSS process to make The size of the resident set or the actual memory size (RSS is the "resident set size" meaning physical memory used) TTY associated with the 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)   Status of the  stat check: 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 a swap page), W (swap 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 non-interruptible uninterruptible sleep ( Usually IO)  r is running, or the process in the queue  s is dormant  t stopped or tracked  z zombie process  w into memory swap (invalid from kernel 2.6)  x dead process    < high priority  n Low priority  l Some pages are locked into memory  s contains child processes  + The process group in the background;  l Multi-threading,Clone thread  multi-threaded (using Clone_thread, like NPTL pthreads do)    www.2cto.com  google after finishing   Reference reading: Http://elinux.org/Runtime_Memory_Measurement

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.