Linux process Snapshot related knowledge

Source: Internet
Author: User



Search Kernel version
UNAME-A//Uname-r




Process Snapshot
PS Report a snapshot of the processes




User Process Owner
Pid Process ID Process number
%CPU process consumes CPU percentage
%MEM Percentage of process consuming memory
VSZ Virtual memory
RSS Real Memory
Tty Terminal Terminal
STAT Status of the process
Main state (note: Host status one process only one)
D Non-disruptive sleep
S interruptible Sleep
X dead process (not visible)
R is executing or is going to execute the process
Z Defunct (zombie)
T Stop Program paused


Secondary status (note: can be multiple)
S process leader Session leader
L Multi-thread Multithreading
L Page-lock page Lock
< high priority but not precedence over other processes
N low-priority but takes precedence over other processes
+ Foreground Front Desk

Start Opening time
Time Runtime
Command process run instructions (inter-process relationships)


Usage:
1. Simple dot PS xf//note:ps-xf is isn't right
2.ps AUXF Full of




Process monitoring


Top Monitor




Pid Process ID Process number
User Process Owner
PR System priority
NI True priority
VIRT Virtual memory
Res Real memory
Shr Shared memory
SRunning state
%cpu CPU Usage
%MEM Memory utilization
time+ Time
COMMAND Command


You can press h for help


You can adjust the instructions you need.




How to drop a program into the background


./xxxxx & Drop the XXXXX program into the background execution


./xxxxx
CTRL + Z drop the program into the background and pause the program


View background tasks
Jobs


Drop the background task to the foreground to execute


FG + Drop the background with the + sign program to the foreground
FG-Drop the program in the background with the sign in the foreground
FG 1 Drop the background task number 1 program to the foreground



























Linux process Snapshot related knowledge

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.