Linux Process, linux deletion Process

Source: Internet
Author: User

Linux Process, linux deletion Process

1. Process Overview

◆ A process is a program or command being executed. Every process is a running entity with its own address space and occupies certain system resources.

2. Role of process management

◆ Determine the health status of the server

◆ View all processes in the system

◆ Killing Processes

3. Process Management-view Processes

View All PROCESSES IN THE SYSTEM

[Root @ localhost ~] # Ps aux

# View all processes in the system, using the BSD operating system format (Unix format)

[Root @ localhost ~] # Ps-le

# View all processes in the system and use the standard Linux Command Format.

 

 

◆ USER: the USER who generates the process;

◆ PID: ID of the process;

◆ % CPU: the percentage of CPU resources occupied by the process. The higher the CPU usage, the more resources the process consumes;

◆ % MEM: Percentage of physical memory occupied by the process. The higher the memory occupied, the more resources the process consumes;

◆ VSZ: the virtual memory occupied by the process, in KB;

◆ RSS: the actual physical memory occupied by the process, in KB;

◆ TTY: the process runs on that terminal. The tty1-tty7 represents the local console terminal, the tty1-tty6 is the local character interface terminal, and the tty7 is the graphical terminal. Pts/0-255 represents a virtual terminal.

◆ SATA: Process status. Common statuses include: R: Run, S: Sleep, T: Stop, s: contains sub-processes, and +: Located in the background

◆ START: START Time of the process

◆ TIME: the CPU computing TIME occupied by the process. Note that it is not the system TIME.

◆ COMMAND: name of the COMMAND that generates this process

 

4. view the System Health Status

[Root @ localhost ~] # Top [Options]

Option:

-D seconds: specifies the number of seconds that the top command updates. By default, commands that can be executed in the top command interaction mode in 3 seconds are as follows:

? Or h: Help of the real interaction mode

P: sort by CPU usage. This option is used by default.

M: sort by memory usage

N: sort by a PID

-Q: Exit top.

 

The most important task of the top command is the first five lines!

 

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.