V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
king1688888888
V2EX  ›  Linux

请问如何定位某一时间段哪些程序占用了多少 CPU 和内存等等。

  •  
  •   king1688888888 · Feb 21, 2020 · 3638 views
    This topic created in 2256 days ago, the information mentioned may be changed or developed.
    通过命令:sar -f /var/log/sa/saXX -u

    比如显示今天 15 时 20 分-30 分,CPU 的%idle 只剩下 10%了,我应该使用什么命令去准确定位,在 15 时 20 分-30 分哪些进程占用了大量 CPU ?谢谢各位大神。
    6 replies    2020-02-21 19:22:02 +08:00
    xupefei
        1
    xupefei  
       Feb 21, 2020 via iPhone
    pcp-atop ?
    marco25
        2
    marco25  
       Feb 21, 2020
    atop
    Ericcccccccc
        3
    Ericcccccccc  
       Feb 21, 2020
    top
    hatebugs
        4
    hatebugs  
       Feb 21, 2020
    atop 定时跑
    saytesnake
        5
    saytesnake  
       Feb 21, 2020
    sar 太古老了,atop 吧
    omph
        6
    omph  
       Feb 21, 2020
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:09 · PVG 08:09 · LAX 17:09 · JFK 20:09
    ♥ Do have faith in what you're doing.