Process: Executing program (all system files are called through the kernel, one service corresponds to multiple processes)
Threads: One or more execution units (function modules) contained in a process are called threads.
(multiple threads make up a process)
Web site: Multi-process Programs MySQL Database: single-process multithreading
The role of the management process: 1, determine the health status of the server
2. View the system process (determine if there is a malicious process)
3, forcing the termination of a process that cannot be closed by normal means
Ps-aux/pu aux view all processes in the current system
-a displays all processes in a terminal, except session leader
User and memory of the-U process
-X is not controlled by the terminal process
-l display in long format
-E Show All processes
-F Full Output
PS Command View information (partial)
%men: The percentage of physical memory that the process occupies
Vsz: Virtual memory RSS: Real memory TTY: Terminal mode
Time: Process consumes CPU
Ps-le View information display (partial)
UID: This process is called by which UID ADDR:-Indicates the running state
PPID: ID number of the parent process Wchan: virtual memory address
C:CPU usage sz: How much memory the process consumes
PRI: Priority NI: Administrator-Set Priority
Dynamic viewing of system processes
Top command
-D seconds updates every few seconds
-N times Top Command execution count
-P Specify PID
-U listens on a user process
Kill process
Kill-9 PID number forced shutdown process
Killall-9 forcing termination of all associated processes for a service
PKILL-T Terminal number kick off the remote terminal process
- u based on user name
Resource Management
Vmstat Explorer
Vmstat 1 3 Refresh delay Refresh Count
This article is from the "Xfell" blog, make sure to keep this source http://xfell.blog.51cto.com/11905879/1870566
Record your own common process management commands