A detailed description of Linux process management tools

Source: Internet
Author: User
Tags memory usage

  • Process management Tools

  • View process

    Pstree Show Process Tree

    -P: Display PID

    Ps

    Search process

    PS | Grep

    Pgrep

    Pidof

      • System Monitoring Tools

    Uptime

    Free

    Top

    The first line: The current system time system boot up to now the time elapsed the current number of users system in 1, 5, 15 minutes of the average load

    equivalent to uptime command; Interactive button: l

    Note: The smaller the average load value, the more idle the system is, and if it is above 1, the current system load is too high

    second line: Shows the current total process volume with the individual program in what state (Running,sleeping,stopped,zombie)

    Note: The last zombie value, if not 0, requires a look at which process is in a zombie state.

    The third line: The overall CPU load is displayed, if it is multi-core, you can use the number 1 key to toggle the display mode

    Us:user Space user Run program consumes CPU percentage

    Sy:system percentage of CPU used to run the kernel

    Ni:nice the percentage of CPU that processes that have changed the priority of the user process space

    Id:idle Idle CPU Percentage

    Wa:wait to wait I/O takes time

    Hi:hardware Interrupt hard key interrupt consumes CPU percentage

    Si:software Interrupt Soft Key interrupt consumes CPU percentage

    St:stolen, percentage of "stolen" by virtual machine

    Line four: Physical memory usage line fifth: Swap partition condition press M to toggle display mode

    Htop

    Iotop

    glances       

    Vmstat

    Iostat

    Dstat

    Management process

    Signal Man 7 SIGNAL

    Show All Signals Kill-l | Drop-l

    1) SIGHUP do not restart the process and let it reread the configuration file

    2) SIGINT equivalent to CTRL + C

    3) Sigquit equivalent to Ctrl+\

    9) SIGKILL Force abort the process of running

    SIGTERM process of normal abort operation

    ) Sigcont Continue

    () SIGSTOP Sleep

    Kill

    Killall

    Pkill



    A detailed description of 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.