update doc

This commit is contained in:
hengyunabc committed 2020-06-30 17:10:15 +08:00
1 parent 730d809183
commit 1e119b02aa
60 files changed
+65 -7

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@
#### 第一步: 创建你的批处理脚本
这里我们新建了一个`test.as`脚本,为了规范,我们采用了.as后缀名,但事实上任意的本文文件都ok。
这里我们新建了一个`test.as`脚本,为了规范,我们采用了.as后缀名,但事实上任意的文本文件都ok。
> 注意事项
> * 目前需要每个命令占一行
@@ -29,13 +29,13 @@ sc -d org.apache.commons.lang.StringUtils
通过`-f`执行脚本文件, 批处理脚本默认会输出到标准输出中,可以将结果重定向到文件中。
```bash
./as.sh -f /var/tmp/test.as 56328 > test.out
./as.sh -f /var/tmp/test.as <pid> > test.out # pid 可以通过 jps 命令查看
```
也可以通过 `-c` 来指定指行的命令,比如
```bash
./as.sh -c 'sysprop; thread' 56328 > test.out
./as.sh -c 'sysprop; thread' <pid> > test.out # pid 可以通过 jps 命令查看
```
#### 第三步: 查看运行结果
+1
View File
@@ -27,6 +27,7 @@ Contents
--------
* [招聘信息!](https://mp.weixin.qq.com/s/677GO-3kYx5ygG9rlOlfQg)
* [技术征文!](https://developer.aliyun.com/article/751641)
* [English Docs](https://alibaba.github.io/arthas/en/)
* [在线教程(推荐)](https://alibaba.github.io/arthas/arthas-tutorials?language=cn)
* [安装](install-detail.md)