Linux daily operation and maintenance management skills--monitoring system status

Source: Internet
Author: User
Tags disk usage

Linux daily operation and maintenance management skills--monitoring system Status

First, check the disk status

1.iostat–x Disk usage

%util indicates io waits,

2.iotop disk usage (dynamic display)

Second,free to view memory usage

1. The free command displays system usage and idle memory conditions, including physical memory, interactive area memory (swap), and kernel buffer memory. Shared memory will be ignored

Command parameters:

- b displays memory usage in bytes.

- k displays memory usage in kilobytes.

- m displays memory usage in megabytes.

- g displays memory usage in gigabytes.

-O does not display buffer throttling columns.

-s< interval seconds > Continuous observation of memory usage.

-T displays the memory sum column.

-V Displays version information.

Content Details:

Total: The amount of physical memory.

Used: how large is used.

Free: how much is available.

Shared: The total amount of memory shared by multiple processes.

Buffers/cached: The size of the disk cache.

three,PS usage

The PS command in PS Linux is the abbreviation for Process Status. the PS command is used to list those processes that are currently running on the system. the PS command lists the current snapshots of those processes , which are the processes that were executed at the moment of the PS command.

1.ps Use of Commands

A show All processes

-a displays all programs under the same terminal

-a Show all processes

C Displays the real name of the process

-N Reverse selection

-e equals "-A"

e display Environment variables

F Show the relationship between programs

-H Display tree structure

R shows the process of the current terminal

T Displays all programs for the current terminal

U specify all processes for the user

-au Show more detailed information

-aux Show all itineraries that contain other users

-c< Commands > lists the status of the specified command

--lines< lines > number of rows displayed per page

--width< characters > number of characters displayed per page

--help Display Help information

--version Display version display

The 2.ps tool identifies 5 status codes for the process :

D non-interruptible uninterruptible sleep (usually IO)

R Run runnable (on Run queue)

S Interrupt sleeping

T Stop traced or stopped

Z Zombie A defunct ("zombie") process


Linux daily operations management tips-monitoring System status

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.