Process

目錄

介紹

這個子命令可以顯示某個 agent 上正在執行的程序列表

回到目錄

用法

Usage: orxray process ACTION [OPTIONS]

ACTIONS:
    list

GLOBAL OPTIONS:
    --help
    --config                           specify config file, default is ~/.orxray/config.

回到目錄

List

這個子命令顯示某個 agent 上正在執行的所有程序資訊。

回到目錄

用法

Usage: orxray process list [OPTIONS]

OPTIONS:
    -a, --agent                        agent id, or use default agent.

GLOBAL OPTIONS:
    --help
    --config                           specify config file, default is ~/.orxray/config.

回到目錄

示例

顯示預設 agent 上的程序列表

$ orxray process list 
PID     EXE                                             CPU     CPU TIME        MEMORY  RSS(KB) VSZ(KB) USER    
1       /usr/lib/systemd/systemd                                00:00:52                4584    126172  root    
4265    /opt/kube/bin/containerd-shim                           00:00:08                6700    108716  root    
52725   /usr/local/openresty-postgresql12/bin/postgres          00:00:22        0.2%    17360   314184  postgres
486     /usr/lib/systemd/systemd-journald                       00:00:43        0.6%    53648   110284  root    
52729   /usr/local/openresty-postgresql12/bin/postgres          00:00:05        0.1%    12356   314348  postgres
4795    /usr/sbin/nginx                                         00:00:00                2800    32624   root    
102937  /usr/local/openresty-postgresql12/bin/postgres          00:00:27        0.2%    18272   321052  postgres
...

回到目錄