arthas/tutorials/katacoda/command-dashboard-cn/arthas-demo.md
Hollow Man a7856ffdc1
Arthas dashboard 命令教程 (#1326)
* add dashboard command scenario. #847

Signed-off-by: hollowman6 <hollowman186@vip.qq.com>

* fix link typo

Signed-off-by: hollowman6 <hollowman186@vip.qq.com>

* merge 'dashboard.md' and 'dashboard-usage.md'

Signed-off-by: hollowman6 <hollowman186@vip.qq.com>
2020-07-23 15:28:59 +08:00

340 B

下载arthas-demo.jar,再用java -jar命令启动:

wget https://alibaba.github.io/arthas/arthas-demo.jar java -jar arthas-demo.jar{{execute T1}}

arthas-demo是一个很简单的程序,它随机生成整数,再执行因式分解,把结果打印出来。如果生成的随机数是负数,则会打印提示信息。