Auto Analyze

目录

介绍

通过 orxray auto-analyze 子命令可以按照问题类型进行分析。

回到目录

用法

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

If you want to specify multiple problems, separate them with commas, such as "high-cpu-usage,high-memory-usage".

PROBLEMS:
    high-cpu-usage
    high-memory-usage
    high-disk-io
    high-latency
    low-cpu-usage
    errors-and-exceptions

OPTIONS:
    -A, --app-id integer               Application ID.
    -d, --duration                     Set the sample duration in seconds, the default is 60 seconds.
    -t, --app-type string              Application type: openresty, golang, python, php, perl and more.
    -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.
    -m, --max-rounds                   Sets the maximum number of sampling rounds, the default value 1.
    -n, --no-wait                      Do not wait for analysis to complete.

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

回到目录

示例

分析指定应用高 CPU 使用率问题。

$ orxray auto-analyze high-cpu-usage -A 267

分析指定应用某个进程的高 CPU 使用率问题。

$ orxray auto-analyze high-cpu-usage -A 267 -p 2121

分析指定应用进程组的高 CPU 使用率问题。

$ orxray auto-analyze high-cpu-usage -A 267 -p -2120

回到目录