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

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

* fix link typo

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

* remove additional link

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

* polish 'Custom shortcuts'

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

* polish kaymap command scenario. #847

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

* fix mistake

Signed-off-by: hollowman6 <hollowman186@vip.qq.com>
2020-07-23 16:21:07 +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是一个很简单的程序,它随机生成整数,再执行因式分解,把结果打印出来。如果生成的随机数是负数,则会打印提示信息。