arthas/arthas-tutorials-cn/command/mc-retransform/arthas-boot.md

12 lines
615 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

手动新建一个终端于 `Tab 2`{{}} ,在 `Tab 2`{{}} 里,下载`arthas-boot.jar`{{}} ,再用`java -jar`{{}} 命令启动:
`wget https://arthas.aliyun.com/arthas-boot.jar; java -jar arthas-boot.jar`{{execute T2}}
`arthas-boot`{{}} 是`Arthas`{{}} 的启动程序,它启动后,会列出所有的 Java 进程,用户可以选择需要诊断的目标进程。
选择第一个进程,输入 `1`{{execute T2}} ,再`Enter/回车`{{}}
Attach 成功之后,会打印 Arthas LOGO。输入 `help`{{execute T2}} 可以获取到更多的帮助信息。
![Arthas Boot](../../assets/arthas-boot.png)