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