V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
king1688888888
V2EX  ›  Linux

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

  •  
  •   king1688888888 · 2020-02-21 15:30:52 +08:00 · 2785 次点击
    这是一个创建于 1497 天前的主题,其中的信息可能已经有所发展或是发生改变。
    通过命令:sar -f /var/log/sa/saXX -u

    比如显示今天 15 时 20 分-30 分,CPU 的%idle 只剩下 10%了,我应该使用什么命令去准确定位,在 15 时 20 分-30 分哪些进程占用了大量 CPU ?谢谢各位大神。
    6 条回复    2020-02-21 19:22:02 +08:00
    xupefei
        1
    xupefei  
       2020-02-21 15:40:53 +08:00 via iPhone
    pcp-atop ?
    marco25
        2
    marco25  
       2020-02-21 15:43:41 +08:00
    atop
    Ericcccccccc
        3
    Ericcccccccc  
       2020-02-21 15:55:28 +08:00
    top
    hatebugs
        4
    hatebugs  
       2020-02-21 16:20:53 +08:00
    atop 定时跑
    saytesnake
        5
    saytesnake  
       2020-02-21 16:26:29 +08:00
    sar 太古老了,atop 吧
    omph
        6
    omph  
       2020-02-21 19:22:02 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   984 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 349ms · UTC 20:30 · PVG 04:30 · LAX 13:30 · JFK 16:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.