mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
514 B
514 B
下载math-game.jar
,再用java -jar
命令启动:
wget https://arthas.aliyun.com/math-game.jar java -jar math-game.jar
{{execute T1}}
math-game
是一个很简单的程序,它随机生成整数,再执行因式分解,把结果打印出来。如果生成的随机数是负数,则会打印提示信息。
为了和使用vmoption后的效果作对比,此时使用Ctrl+c
{{execute interrupt}},程序很自然地退出。
再次启动math-game
:
java -jar math-game.jar
{{execute T1}}