Record your own common process management commands

Source: Internet
Author: User
Tags cpu usage

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

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.