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