Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
king1688888888
V2EX  ›  Linux

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

  •  
  •   king1688888888 · Feb 21, 2020 · 4076 views
    This topic created in 2447 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
    xupefei
    Feb 21, 2020 via iPhone
    1
    pcp-atop ?
    marco25
    marco25
    Feb 21, 2020
    2
    atop
    Ericcccccccc
    Ericcccccccc
    Feb 21, 2020
    3
    top
    hatebugs
    hatebugs
    Feb 21, 2020
    4
    atop 定时跑
    saytesnake
    saytesnake
    Feb 21, 2020
    5
    sar 太古老了,atop 吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4562 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 09:42 · PVG 17:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.