Auto Analyze

目录

介绍

通过 orxray auto-analyze 子命令可以针对某些资源进行分析。

回到目录

用法

Usage: orxray auto-analyze [RESOURCES] [OPTIONS]

If you want to specify multiple resources, separate them with commas, such as "cpu,memory".

RESOURCES:
    cpu
    memory
    disk
    net
    latency

OPTIONS:
    -A, --app-id integer               Application ID.
    -p, --pid integer                  pid. If pid is negative, will auto find the pgid of the -pid.
    -a, --agent integer                Agent ID, please use agent default command to set default agent.


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

回到目录

示例

指定 CPU 资源进行分析。

$ orxray auto-analyze cpu -A 267
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=1 for more details.

指定 CPU 和 Disk 资源进行分析。

$ orxray auto-analyze cpu,disk -A 267
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=2 for more details.

分析指定应用某个进程的 CPU 资源。

$ orxray auto-analyze cpu -A 267 -p 2121
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=3 for more details.

分析指定应用进程组的 CPU 资源。

$ orxray auto-analyze cpu -A 267 -p -2120
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=4 for more details.

回到目录