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