From aef884e4395c076896e768527bf30e698a08eef1 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Sun, 12 Apr 2020 01:22:09 +0800 Subject: [PATCH] update doc --- README.html | 6 +- _sources/advanced-use.md.txt | 5 + _sources/agent.md.txt | 15 ++ _sources/commands.md.txt | 1 + _sources/echo.md.txt | 9 + _sources/options.md.txt | 1 + _static/documentation_options.js | 2 +- advanced-use.html | 19 +- advice-class.html | 6 +- agent.html | 290 ++++++++++++++++++++++++++ arthas3.html | 6 +- arthas_3_0/new_feature.html | 6 +- async.html | 11 +- batch-support.html | 7 +- cat.html | 11 +- classloader.html | 7 +- commands.html | 8 +- contact-us.html | 6 +- dashboard.html | 7 +- docker.html | 6 +- download.html | 6 +- dump.html | 7 +- echo.html | 306 ++++++++++++++++++++++++++++ en/README.html | 6 +- en/_sources/advanced-use.md.txt | 5 + en/_sources/agent.md.txt | 14 ++ en/_sources/commands.md.txt | 1 + en/_sources/echo.md.txt | 9 + en/_sources/options.md.txt | 1 + en/_static/documentation_options.js | 2 +- en/advanced-use.html | 19 +- en/advice-class.html | 7 +- en/agent.html | 285 ++++++++++++++++++++++++++ en/async.html | 11 +- en/batch-support.html | 7 +- en/cat.html | 11 +- en/classloader.html | 7 +- en/commands.html | 8 +- en/dashboard.html | 7 +- en/docker.html | 6 +- en/download.html | 6 +- en/dump.html | 7 +- en/echo.html | 301 +++++++++++++++++++++++++++ en/genindex.html | 6 +- en/getstatic.html | 7 +- en/grep.html | 11 +- en/groovy.html | 6 +- en/heapdump.html | 7 +- en/index.html | 6 +- en/install-detail.html | 6 +- en/jad.html | 7 +- en/jvm.html | 7 +- en/keymap.html | 6 +- en/logger.html | 7 +- en/manual-install.html | 6 +- en/mbean.html | 7 +- en/mc.html | 7 +- en/monitor.html | 7 +- en/objects.inv | Bin 780 -> 806 bytes en/ognl.html | 7 +- en/options.html | 12 +- en/perfcounter.html | 7 +- en/profiler.html | 7 +- en/pwd.html | 7 +- en/quick-start.html | 6 +- en/redefine.html | 7 +- en/release-notes.html | 6 +- en/reset.html | 6 +- en/save-log.html | 7 +- en/sc.html | 7 +- en/search.html | 6 +- en/searchindex.js | 2 +- en/sm.html | 7 +- en/stack.html | 7 +- en/start-arthas.html | 6 +- en/sysenv.html | 7 +- en/sysprop.html | 7 +- en/tee.html | 7 +- en/thread.html | 7 +- en/trace.html | 7 +- en/tt.html | 7 +- en/vmoption.html | 7 +- en/watch.html | 7 +- en/web-console.html | 10 +- genindex.html | 6 +- getstatic.html | 7 +- grep.html | 11 +- groovy.html | 6 +- heapdump.html | 7 +- index.html | 6 +- install-detail.html | 6 +- jad.html | 7 +- jvm.html | 7 +- keymap.html | 6 +- logger.html | 7 +- manual-install.html | 6 +- mbean.html | 7 +- mc.html | 7 +- monitor.html | 7 +- objects.inv | Bin 972 -> 1003 bytes ognl.html | 7 +- options.html | 12 +- perfcounter.html | 7 +- profiler.html | 7 +- pwd.html | 7 +- quick-start.html | 6 +- redefine.html | 7 +- release-notes.html | 6 +- reset.html | 6 +- save-log.html | 7 +- sc.html | 7 +- search.html | 6 +- searchindex.js | 2 +- sm.html | 7 +- stack.html | 7 +- start-arthas.html | 6 +- sysenv.html | 7 +- sysprop.html | 7 +- tee.html | 7 +- thread.html | 7 +- trace.html | 7 +- tt.html | 7 +- vmoption.html | 7 +- watch.html | 7 +- web-console.html | 10 +- 125 files changed, 1685 insertions(+), 335 deletions(-) create mode 100644 _sources/agent.md.txt create mode 100644 _sources/echo.md.txt create mode 100644 agent.html create mode 100644 echo.html create mode 100644 en/_sources/agent.md.txt create mode 100644 en/_sources/echo.md.txt create mode 100644 en/agent.html create mode 100644 en/echo.html diff --git a/README.html b/README.html index c06ed684f..6ae4cfd90 100644 --- a/README.html +++ b/README.html @@ -8,7 +8,7 @@ - <no title> — Arthas 3.1.8 文档 + <no title> — Arthas 3.2.0 文档 @@ -66,7 +66,7 @@
- 3.1.8 + 3.2.0
@@ -187,7 +187,7 @@

- © Copyright 2018-2019, Alibaba Middleware Group, and contributors + © Copyright 2018-2020, Alibaba Middleware Group, and contributors

diff --git a/_sources/advanced-use.md.txt b/_sources/advanced-use.md.txt index b4dac0ff1..5767acec9 100644 --- a/_sources/advanced-use.md.txt +++ b/_sources/advanced-use.md.txt @@ -6,6 +6,7 @@ * help——查看命令帮助信息 * [cat](cat.md)——打印文件内容,和linux里的cat命令类似 +* [echo](echo.md)--打印参数,和linux里的echo命令类似 * [grep](grep.md)——匹配查找,和linux里的grep命令类似 * [tee](tee.md)——复制标准输入到标准输出和指定的文件,和linux里的tee命令类似 * [pwd](pwd.md)——返回当前的工作目录,和linux命令类似 @@ -90,6 +91,10 @@ Arthas支持使用管道对上述命令的结果进行进一步的处理,如`s * [Web Console](web-console.md) +## 以java agent方式启动 + +* [以java agent方式启动](agent.md) + ## 用户数据回报 在`3.1.4`版本后,增加了用户数据回报功能,方便统一做安全或者历史数据统计。 diff --git a/_sources/agent.md.txt b/_sources/agent.md.txt new file mode 100644 index 000000000..a1ac03665 --- /dev/null +++ b/_sources/agent.md.txt @@ -0,0 +1,15 @@ +以Java Agent的方式启动 +=== + +通常Arthas是以动态attach的方式来诊断应用,但从`3.2.0`版本起,Arthas支持直接以 java agent的方式启动。 + +比如下载全量的arthas zip包,解压之后以 `-javaagent` 的参数指定`arthas-agent.jar`来启动: + +``` +java -javaagent:/tmp/test/arthas-agent.jar -jar arthas-demo.jar +``` + +默认的配置项在解压目录里的`arthas.properties`文件里。 + + +参考: https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.html \ No newline at end of file diff --git a/_sources/commands.md.txt b/_sources/commands.md.txt index 365de44a0..a48066d8a 100644 --- a/_sources/commands.md.txt +++ b/_sources/commands.md.txt @@ -33,6 +33,7 @@ * [profiler](profiler.md) * [cat](cat.md) +* [echo](echo.md) * [grep](grep.md) * [tee](tee.md) * [pwd](pwd.md) diff --git a/_sources/echo.md.txt b/_sources/echo.md.txt new file mode 100644 index 000000000..39ace94e0 --- /dev/null +++ b/_sources/echo.md.txt @@ -0,0 +1,9 @@ +echo +=== + +> 打印参数,和linux里的echo命令类似。 + + +```bash +$ echo 'hello' +``` \ No newline at end of file diff --git a/_sources/options.md.txt b/_sources/options.md.txt index 2603c2516..ad36e7a58 100644 --- a/_sources/options.md.txt +++ b/_sources/options.md.txt @@ -10,6 +10,7 @@ options | batch-re-transform | true | 是否支持批量对匹配到的类执行retransform操作 | | json-format | false | 是否支持json化的输出 | | disable-sub-class | false | 是否禁用子类匹配,默认在匹配目标类的时候会默认匹配到其子类,如果想精确匹配,可以关闭此开关 | +| support-default-method | true | 是否支持匹配到default method,默认会查找interface,匹配里面的default method。参考 [#1105](https://github.com/alibaba/arthas/issues/1105) | | debug-for-asm | false | 打印ASM相关的调试信息 | | save-result | false | 是否打开执行结果存日志功能,打开之后所有命令的运行结果都将保存到`~/logs/arthas-cache/result.log`中 | | job-timeout | 1d | 异步后台任务的默认超时时间,超过这个时间,任务自动停止;比如设置 1d, 2h, 3m, 25s,分别代表天、小时、分、秒 | diff --git a/_static/documentation_options.js b/_static/documentation_options.js index a08eecc3e..fe97cbdd0 100644 --- a/_static/documentation_options.js +++ b/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '3.1.8', + VERSION: '3.2.0', LANGUAGE: 'zh_CN', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', diff --git a/advanced-use.html b/advanced-use.html index 07cd35a16..07fb572bd 100644 --- a/advanced-use.html +++ b/advanced-use.html @@ -8,7 +8,7 @@ - 进阶使用 — Arthas 3.1.8 文档 + 进阶使用 — Arthas 3.2.0 文档 @@ -68,7 +68,7 @@
- 3.1.8 + 3.2.0
@@ -112,6 +112,10 @@
  • Web Console
  • +
  • 以java agent方式启动 +
  • 用户数据回报
  • 其他特性