Linux Process management Tools

Source: Internet
Author: User
Tags network function


Narrowly defined: A process is an instance of a running program.

Generalized definition: A process is a running activity of a program with certain independent functions about a data set. It is the basic unit of the operating system dynamic execution, in the traditional operating system, the process is not only the basic allocation unit, but also the basic execution unit.

process is the most basic and important concept in the operating system. After the emergence of multi-channel program system, in order to describe the dynamic situation inside the system, it describes a concept of introducing the activity law of each procedure in the system , and all the multi-channel program design operating systems are based on the process.

The attributes of a process;

Process ID ( PID) : Is the only value used to distinguish the process;

the parent process and the parent process ID ( PPID) ;

the user who started the process ID ( UID ) and the group to which it belongs ( GID );

Process state: The state is divided into running, sleeping, (interruptible and non-interruptible), Ready, stop, zombie;

Priority of process execution;

The name of the terminal to which the process is connected;

process Resource consumption: For example, resource size (memory, CPU consumption);

ii. Process Management

Linux processes are managed through process management tools, such as Htop , glances , Dstat wait

Htop is a Linux an interactive process viewer in the system, with the Linux of traditional Top compared to Htop more humane. It allows users to interact interactively, support color themes, scroll through the list of processes horizontally or vertically, and support mouse actions.

Htop Command : Interactive Commands

u: filtering only shows the process of the selected user;

S: tracks system calls initiated by the selected process;

L: Displays the files opened by the selected process;

T: displays the hierarchy of processes;

A: of the Set process CPU (binds the selected process to the specified CPU on)

Options:

-d#: Delay Duration

-uusername: displays only the processes of the specified user;

-scolumn: sorts according to the specified field;

glances Command :

glances [-BDEHMNRSVYZ1] [-B bind] [-C Server] [-C conffile] [-P port][-p Password] [--password] [-t refresh] [-f file] [-O Output

Common options:

- B: in byte/s Display network card device data exchange rate for units;

- D: Close Disk I/O function module;

-f/path/to/somefile : Set the location and format of the output file;

-o{html| CSV}:

- m: Close Mount function Module

- N: Turn off the network function module

- R: Close the Process List feature module

-t#: Specifies the length of the delay, which defaults to 3 seconds;

-1 : Each individual display CPU relevant load data information;

glances Remote mode support:

that can work in C /s mode:

Server: start in listening mode glances ;

Client: start in remote mode glances , connect to the specified server remotely, and Server on the correlation energy data;

service mode:

Glances-s-B ipaddr

-B: used to indicate the local address of the listener;

Client mode:

Glances-c ipaddr

C: the address of the server to which the connection is to be placed;

Dstat Command : integrates the Vmstat, Iostat, netstat and ifstat Four tools of the function;

Dstat [-AFV] [options:] [Delay [Count]]

C: Show CPU statistical data related to performance indicators;

- D: Show Disk correlated rate data;

- G: Show page correlated rate data;

- I.: Show Interrupt correlated rate data;

- L: Show Load Average ( a) relevant statistical data;

- m: Show Memory ( a) relevant statistical data;

- N: shows the rate of data sent and received by the network;

- P: Show process-related statistics,

-r:io the rate of the request;

- S: Show Swap the relevant data

- y: Display system-related data, including interrupts and process switching;

--top-cpu : Displays the most occupied CPU the process;

--top-bio : Displays the most consumed Blockio the process;

--top-io : Most occupied io the process;

--top-mem : Displays the most memory-intensive processes;

--IPC: shows the rate data related to interprocess communication;

--raw: Show Raw The relevant data of the socket;

--tcp: Show TCP data related to sockets;

--UDP: Show UDP data related to sockets;

--unix: Show Unix sock interface-related statistical data;

--socket:

-a:-cdngy


This article is from the "Anyone" blog, make sure to keep this source http://anyone2015.blog.51cto.com/10031868/1635874

Linux Process management Tools

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.