Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
Busybox 里面怎么监控一个进程的 CPU 跟 MEM 得好用的命令
Gcourage
·
Dec 16, 2018
· 4444 views
This topic created in 2708 days ago, the information mentioned may be changed or developed.
之前在 Linux 上使用 ps — no-header -o %cpu,%mem -p $pid
但是 busybox 里面,ps 功能比较弱
大家都是直接用 top -n1 再 grep 挑选下?
busybox
Mem
CPU
pid
3 replies
•
2018-12-20 10:52:06 +08:00
1
lieh222
Dec 16, 2018
sar
2
vuuv
Dec 17, 2018 via Android
top -b 可以启用批量模式。
好像也没其他命令可以保证效果了。
3
Gcourage
OP
Dec 20, 2018 via Android
@
lieh222
@
vuuv
多谢两位,最后还是用 top 再 grep 了,很多命令都缺失了
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
959 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 19:34
·
PVG 03:34
·
LAX 12:34
·
JFK 15:34
♥ Do have faith in what you're doing.
❯