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