• 1 
瀏覽模式: 普通 | 列表

linux 用 ps 找出誰占用 CPU 最多的程序

指令
ps -eo pid,ppid,user,group,pcpu,pmem,comm,stat,state,time,lstart,ni,tty,vsize,sz | sort -r -k 5
參數說明

comm = command = args = cmd
pcpu = cpu utilization of the process in "##.#" format
time = cumulative CPU time
pmem = ratio of the process’s resident set size  to the physical memory on the machine, expressed as a percentage
lstart = time the command started
ni = nice value. This ranges from 19 (nicest) to -20 (not nice to others)
tty = tt = tname = controlling tty (terminal).
vsize = vsz = virtual memory size of the process in KiB
sz = size in physical pages of the core image of the process
結果顯示

[閱讀全文]

標籤: linux top cpu ps process 程序

怪程序加上找不到的檔案

一切從主機的 load average 升高開始

top 看到一堆 perl 程序在跑,且 User 是 Apache

attachments/201001/1179127839.png

我用 ps axjf | less 查不到它的資訊

[閱讀全文]

標籤: proc 程序

  • 1