update doc

gh-pages
hengyunabc 4 years ago
parent b1126881de
commit 328ac79bed

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>&lt;no title&gt; &mdash; Arthas 3.4.8 文档</title>
<title>&lt;no title&gt; &mdash; Arthas 3.5.0 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -64,6 +64,9 @@
* [profiler](profiler.md)--使用[async-profiler](https://github.com/jvm-profiling-tools/async-profiler)对应用采样,生成火焰图
## 鉴权
* [auth](auth.md)--鉴权
## options
* [options](options.md)——查看或设置Arthas全局开关

@ -0,0 +1,72 @@
auth
===
> 验证当前会话
### 配置用户名和密码
在attach时可以在命令行指定密码。比如
```
java -jar arthas-boot.jar --password ppp
```
* 可以通过 `--username` 选项来指定用户,默认值是`arthas`。
* 也可以在 `arthas.properties` 里中配置 username/password。命令行的优先级大于配置文件。
* 如果只配置`username`,没有配置`password`,则会生成随机密码,打印在`~/logs/arthas/arthas.log`中
```
Using generated security password: 0vUBJpRIppkKuZ7dYzYqOKtranj4unGh
```
### 在telnet console里鉴权
连接到arthas后直接执行命令会提示需要鉴权
```bash
[arthas@37430]$ help
Error! command not permitted, try to use 'auth' command to authenticates.
```
使用`auth`命令来鉴权,成功之后可以执行其它命令。
```
[arthas@37430]$ auth ppp
Authentication result: true
```
* 可以通过 `--username` 选项来指定用户,默认值是`arthas`。
### Web console密码验证
打开浏览器,会有弹窗提示需要输入 用户名 和 密码。
成功之后,则可以直接连接上 web console。
### HTTP API 验证
#### Authorization Header方式推荐
Arthas 采用的是 HTTP 标准的 Basic Authorization客户端请求时增加对应的header即可。
* 参考:[https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
例如,用户名是:`admin`,密码是 `admin`,则组合为字符串: `admin:admin`base64结果是 `YWRtaW46YWRtaW4=`则HTTP 请求增加`Authorization` header
```bash
curl 'http://localhost:8563/api' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{"action":"exec","command":"version"}'
```
#### URL 参数传递方式
为了方便各种特殊情况,支持了以 parameters 方式传递username和password。比如
```bash
curl 'http://localhost:8563/api?password=admin' \
--data-raw '{"action":"exec","command":"version"}'
```

@ -39,6 +39,7 @@
* [base64](base64.md)
* [tee](tee.md)
* [pwd](pwd.md)
* [auth](auth.md)
* [options](options.md)
### Arthas 基础命令

@ -4,6 +4,10 @@
> 不在本列表里的问题请到issue里搜索。 [https://github.com/alibaba/arthas/issues](https://github.com/alibaba/arthas/issues)
##### 日志文件在哪里?
日志文件路径: `~/logs/arthas/arthas.log`
##### Arthas attach之后对原进程性能有多大的影响
[https://github.com/alibaba/arthas/issues/44](https://github.com/alibaba/arthas/issues/44)
@ -16,6 +20,7 @@ com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: ta
1. 检查当前用户和目标java进程是否一致。如果不一致则切换到同一用户。JVM只能attach同样用户下的java 进程。
2. 尝试使用 `jstack -l $pid`如果进程没有反应则说明进程可能假死无法响应JVM attach信号。所以同样基于attach机制的Arthas无法工作。尝试使用`jmap` heapdump后分析。
3. 尝试按[quick-start](quick-start.md)里的方式attach arthas-demo。
4. 更多情况参考: [https://github.com/alibaba/arthas/issues/347](https://github.com/alibaba/arthas/issues/347)
##### trace/watch等命令能否增强jdk里的类
默认情况下会过滤掉`java.`开头的类,但可以通过参数开启。
@ -73,4 +78,8 @@ watch demo.MathGame <init> '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'
##### Arthas能不能离线使用
可以。下载全量包解压即可,参考: [下载](download.md)。
可以。下载全量包解压即可,参考: [下载](download.md)。
##### Attach docker/k8s 里的 pid 为 1 的进程失败
参考: [https://github.com/alibaba/arthas/issues/362#issuecomment-448185416](https://github.com/alibaba/arthas/issues/362#issuecomment-448185416)

@ -434,6 +434,10 @@ curl -Ss -XPOST http://localhost:8563/api -d '''
}
```
### 鉴权
参考: [auth](auth.md)
### Web UI
![](_static/arthas-web-ui.png "arthas web ui")

@ -49,6 +49,7 @@ as.sh --tunnel-server 'ws://47.75.156.201:80/ws'
* 如果有特殊需求,可以通过`--agent-id`参数里指定agentId。默认情况下会生成随机ID。
attach成功之后会打印出agentId比如
```bash
@ -88,6 +89,8 @@ id URJZ5L48RPBR2ALI5K4V
### 最佳实践
> 注意agentId要保持唯一否则会在tunnel server上冲突不能正常工作。
如果 arthas agent配置了 `appName`则生成的agentId会带上`appName`的前缀。
比如在加上启动参数:`as.sh --tunnel-server 'ws://127.0.0.1:7777/ws' --app-name demoapp` 则生成的agentId可能是`demoapp_URJZ5L48RPBR2ALI5K4V`。

@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.4.8',
VERSION: '3.5.0',
LANGUAGE: 'zh_CN',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>进阶使用 &mdash; Arthas 3.4.8 文档</title>
<title>进阶使用 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -114,9 +114,10 @@
<li class="toctree-l2"><a class="reference internal" href="#class-classloader">class/classloader相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="#monitor-watch-trace">monitor/watch/trace相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="#profiler">profiler/火焰图</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">鉴权</a></li>
<li class="toctree-l2"><a class="reference internal" href="#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="#web-console">Web Console</a><ul>
<li class="toctree-l3"><a class="reference internal" href="web-console.html">Web Console</a></li>
</ul>
@ -130,8 +131,8 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#as-sh-arthas-boot">as.sh 和 arthas-boot 技巧</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id6">其他特性</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id6">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id7">其他特性</a><ul>
<li class="toctree-l3"><a class="reference internal" href="async.html">异步命令支持</a></li>
<li class="toctree-l3"><a class="reference internal" href="save-log.html">执行结果存日志</a></li>
<li class="toctree-l3"><a class="reference internal" href="batch-support.html">批处理的支持</a></li>
@ -290,14 +291,20 @@
<li><p><a class="reference internal" href="profiler.html"><span class="doc">profiler</span></a>–使用<a class="reference external" href="https://github.com/jvm-profiling-tools/async-profiler">async-profiler</a>对应用采样,生成火焰图</p></li>
</ul>
</div>
<div class="section" id="id3">
<h2>鉴权<a class="headerlink" href="#id3" title="永久链接至标题"></a></h2>
<ul class="simple">
<li><p><a class="reference internal" href="auth.html"><span class="doc">auth</span></a>–鉴权</p></li>
</ul>
</div>
<div class="section" id="options">
<h2>options<a class="headerlink" href="#options" title="永久链接至标题"></a></h2>
<ul class="simple">
<li><p><a class="reference internal" href="options.html"><span class="doc">options</span></a>——查看或设置Arthas全局开关</p></li>
</ul>
</div>
<div class="section" id="id3">
<h2>管道<a class="headerlink" href="#id3" title="永久链接至标题"></a></h2>
<div class="section" id="id4">
<h2>管道<a class="headerlink" href="#id4" title="永久链接至标题"></a></h2>
<p>Arthas支持使用管道对上述命令的结果进行进一步的处理<code class="docutils literal notranslate"><span class="pre">sm</span> <span class="pre">java.lang.String</span> <span class="pre">*</span> <span class="pre">|</span> <span class="pre">grep</span> <span class="pre">'index'</span></code></p>
<ul class="simple">
<li><p>grep——搜索满足条件的结果</p></li>
@ -305,8 +312,8 @@
<li><p>wc——按行统计输出结果</p></li>
</ul>
</div>
<div class="section" id="id4">
<h2>后台异步任务<a class="headerlink" href="#id4" title="永久链接至标题"></a></h2>
<div class="section" id="id5">
<h2>后台异步任务<a class="headerlink" href="#id5" title="永久链接至标题"></a></h2>
<p>当线上出现偶发的问题比如需要watch某个条件而这个条件一天可能才会出现一次时异步后台任务就派上用场了详情请参考<a class="reference internal" href="async.html"><span class="doc">这里</span></a></p>
<ul class="simple">
<li><p>使用 &gt; 将结果重写向到日志文件,使用 &amp; 指定命令是后台运行session断开不影响任务执行生命周期默认为1天</p></li>
@ -380,15 +387,15 @@ version 3.3.6
pid 58883</pre></div>
</div>
</div>
<div class="section" id="id5">
<h2>用户数据回报<a class="headerlink" href="#id5" title="永久链接至标题"></a></h2>
<div class="section" id="id6">
<h2>用户数据回报<a class="headerlink" href="#id6" title="永久链接至标题"></a></h2>
<p><code class="docutils literal notranslate"><span class="pre">3.1.4</span></code>版本后,增加了用户数据回报功能,方便统一做安全或者历史数据统计。</p>
<p>在启动时,指定<code class="docutils literal notranslate"><span class="pre">stat-url</span></code>,就会回报执行的每一行命令,比如: <code class="docutils literal notranslate"><span class="pre">./as.sh</span> <span class="pre">--stat-url</span> <span class="pre">'http://192.168.10.11:8080/api/stat'</span></code></p>
<p>在tunnel server里有一个示例的回报代码用户可以自己在服务器上实现。</p>
<p><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/StatController.java">StatController.java</a></p>
</div>
<div class="section" id="id6">
<h2>其他特性<a class="headerlink" href="#id6" title="永久链接至标题"></a></h2>
<div class="section" id="id7">
<h2>其他特性<a class="headerlink" href="#id7" title="永久链接至标题"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="async.html">异步命令支持</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表达式核心变量 &mdash; Arthas 3.4.8 文档</title>
<title>表达式核心变量 &mdash; Arthas 3.5.0 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>以Java Agent的方式启动 &mdash; Arthas 3.4.8 文档</title>
<title>以Java Agent的方式启动 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -114,9 +114,10 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace">monitor/watch/trace相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler">profiler/火焰图</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">鉴权</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#web-console">Web Console</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#arthas-properties">Arthas Properties</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#java-agent">以java agent方式启动</a><ul class="current">
@ -124,8 +125,8 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#as-sh-arthas-boot">as.sh 和 arthas-boot 技巧</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">其他特性</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id7">其他特性</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="commands.html">命令列表</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Properties &mdash; Arthas 3.4.8 文档</title>
<title>Arthas Properties &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -114,9 +114,10 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace">monitor/watch/trace相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler">profiler/火焰图</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">鉴权</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#web-console">Web Console</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#arthas-properties">Arthas Properties</a><ul class="current">
<li class="toctree-l3 current"><a class="current reference internal" href="#">Arthas Properties</a><ul>
@ -128,8 +129,8 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#java-agent">以java agent方式启动</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#as-sh-arthas-boot">as.sh 和 arthas-boot 技巧</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">其他特性</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">用户数据回报</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id7">其他特性</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="commands.html">命令列表</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas3.0的新特性 &mdash; Arthas 3.4.8 文档</title>
<title>Arthas3.0的新特性 &mdash; Arthas 3.5.0 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.4.8 文档</title>
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.5.0 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas后台异步任务 &mdash; Arthas 3.4.8 文档</title>
<title>Arthas后台异步任务 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -114,15 +114,16 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace">monitor/watch/trace相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler">profiler/火焰图</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">鉴权</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#web-console">Web Console</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#arthas-properties">Arthas Properties</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#java-agent">以java agent方式启动</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#as-sh-arthas-boot">as.sh 和 arthas-boot 技巧</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">用户数据回报</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#id6">其他特性</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">用户数据回报</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#id7">其他特性</a><ul class="current">
<li class="toctree-l3 current"><a class="current reference internal" href="#">异步命令支持</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#id1">1. 使用&amp;在后台执行任务</a></li>
<li class="toctree-l4"><a class="reference internal" href="#jobs">2. 通过jobs查看任务</a></li>

@ -0,0 +1,383 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="zh-CN" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="zh-CN" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>auth &mdash; Arthas 3.5.0 文档</title>
<link rel="shortcut icon" href="_static/favicon.ico"/>
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<script type="text/javascript" src="_static/translations.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/overrides.css" type="text/css" />
<link rel="index" title="索引" href="genindex.html" />
<link rel="search" title="搜索" href="search.html" />
<link rel="next" title="options" href="options.html" />
<link rel="prev" title="pwd" href="pwd.html" />
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
window.location.href = "https://arthas.aliyun.com/doc/" + window.location.href.substr("https://alibaba.github.io/arthas/".length);
}
</script>
<script src="_static/center_page.js"></script>
<link rel="stylesheet" href="https://g.alicdn.com/code/lib/highlight.js/9.13.1/styles/github.min.css">
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home"> Arthas
</a>
<div class="version">
3.5.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1"><a class="reference external" href="https://arthas.aliyun.com/">首页</a></li>
<li class="toctree-l1"><a class="reference external" href="https://mp.weixin.qq.com/s/jfjvBmrKmHDdKn-Iez-c4Q">2022实习生招聘</a></li>
<li class="toctree-l1"><a class="reference external" href="https://developer.aliyun.com/article/751641">技术分享征文</a></li>
<li class="toctree-l1"><a class="reference external" href="https://arthas.aliyun.com/doc/en/">English Docs</a></li>
<li class="toctree-l1"><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials.html?language=cn">在线教程(katacoda)</a></li>
<li class="toctree-l1"><a class="reference external" href="https://start.aliyun.com/handson-lab?category=arthas">在线教程(阿里云)</a></li>
<li class="toctree-l1"><a class="reference internal" href="install-detail.html">安装</a></li>
<li class="toctree-l1"><a class="reference internal" href="download.html">下载</a></li>
<li class="toctree-l1"><a class="reference internal" href="quick-start.html">快速入门</a></li>
<li class="toctree-l1"><a class="reference internal" href="advanced-use.html">进阶使用</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="commands.html">命令列表</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="dashboard.html">dashboard</a></li>
<li class="toctree-l2"><a class="reference internal" href="thread.html">thread</a></li>
<li class="toctree-l2"><a class="reference internal" href="jvm.html">jvm</a></li>
<li class="toctree-l2"><a class="reference internal" href="sysprop.html">sysprop</a></li>
<li class="toctree-l2"><a class="reference internal" href="sysenv.html">sysenv</a></li>
<li class="toctree-l2"><a class="reference internal" href="vmoption.html">vmoption</a></li>
<li class="toctree-l2"><a class="reference internal" href="perfcounter.html">perfcounter</a></li>
<li class="toctree-l2"><a class="reference internal" href="logger.html">logger</a></li>
<li class="toctree-l2"><a class="reference internal" href="mbean.html">mbean</a></li>
<li class="toctree-l2"><a class="reference internal" href="getstatic.html">getstatic</a></li>
<li class="toctree-l2"><a class="reference internal" href="ognl.html">ognl</a></li>
<li class="toctree-l2"><a class="reference internal" href="sc.html">sc</a></li>
<li class="toctree-l2"><a class="reference internal" href="sm.html">sm</a></li>
<li class="toctree-l2"><a class="reference internal" href="dump.html">dump</a></li>
<li class="toctree-l2"><a class="reference internal" href="heapdump.html">heapdump</a></li>
<li class="toctree-l2"><a class="reference internal" href="jad.html">jad</a></li>
<li class="toctree-l2"><a class="reference internal" href="classloader.html">classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="mc.html">mc</a></li>
<li class="toctree-l2"><a class="reference internal" href="retransform.html">retransform</a></li>
<li class="toctree-l2"><a class="reference internal" href="redefine.html">redefine</a></li>
<li class="toctree-l2"><a class="reference internal" href="monitor.html">monitor</a></li>
<li class="toctree-l2"><a class="reference internal" href="watch.html">watch</a></li>
<li class="toctree-l2"><a class="reference internal" href="trace.html">trace</a></li>
<li class="toctree-l2"><a class="reference internal" href="stack.html">stack</a></li>
<li class="toctree-l2"><a class="reference internal" href="tt.html">tt</a></li>
<li class="toctree-l2"><a class="reference internal" href="profiler.html">profiler</a></li>
<li class="toctree-l2"><a class="reference internal" href="cat.html">cat</a></li>
<li class="toctree-l2"><a class="reference internal" href="echo.html">echo</a></li>
<li class="toctree-l2"><a class="reference internal" href="grep.html">grep</a></li>
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">auth</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id1">配置用户名和密码</a></li>
<li class="toctree-l3"><a class="reference internal" href="#telnet-console">在telnet console里鉴权</a></li>
<li class="toctree-l3"><a class="reference internal" href="#web-console">Web console密码验证</a></li>
<li class="toctree-l3"><a class="reference internal" href="#http-api">HTTP API 验证</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#authorization-header">Authorization Header方式推荐</a></li>
<li class="toctree-l4"><a class="reference internal" href="#url">URL 参数传递方式</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="web-console.html">WebConsole</a></li>
<li class="toctree-l1"><a class="reference internal" href="tunnel.html">Arthas Tunnel</a></li>
<li class="toctree-l1"><a class="reference internal" href="http-api.html">Http API</a></li>
<li class="toctree-l1"><a class="reference internal" href="docker.html">Docker</a></li>
<li class="toctree-l1"><a class="reference internal" href="spring-boot-starter.html">Arthas Spring Boot Starter</a></li>
<li class="toctree-l1"><a class="reference internal" href="idea-plugin.html">IDEA 插件</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/issues?q=label%3Auser-case">用户案例</a></li>
<li class="toctree-l1"><a class="reference internal" href="faq.html">FAQ/常见问题</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas">Star me at GitHub</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#">编译调试/参与贡献</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/releases">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="contact-us.html">QQ群/钉钉群</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Arthas</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> &raquo;</li>
<li><a href="commands.html">命令列表</a> &raquo;</li>
<li>auth</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/alibaba/arthas/blob/master/site/src/site/sphinx/auth.md" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="auth">
<h1>auth<a class="headerlink" href="#auth" title="永久链接至标题"></a></h1>
<blockquote>
<div><p>验证当前会话</p>
</div></blockquote>
<div class="section" id="id1">
<h2>配置用户名和密码<a class="headerlink" href="#id1" title="永久链接至标题"></a></h2>
<p>在attach时可以在命令行指定密码。比如</p>
<div class="highlight-default notranslate"><pre class="literal-block">java -jar arthas-boot.jar --password ppp</pre>
</div>
<ul>
<li><p>可以通过 <code class="docutils literal notranslate"><span class="pre">--username</span></code> 选项来指定用户,默认值是<code class="docutils literal notranslate"><span class="pre">arthas</span></code></p></li>
<li><p>也可以在 <code class="docutils literal notranslate"><span class="pre">arthas.properties</span></code> 里中配置 username/password。命令行的优先级大于配置文件。</p></li>
<li><p>如果只配置<code class="docutils literal notranslate"><span class="pre">username</span></code>,没有配置<code class="docutils literal notranslate"><span class="pre">password</span></code>,则会生成随机密码,打印在<code class="docutils literal notranslate"><span class="pre">~/logs/arthas/arthas.log</span></code></p>
<div class="highlight-default notranslate"><pre class="literal-block">Using generated security password: 0vUBJpRIppkKuZ7dYzYqOKtranj4unGh</pre>
</div>
</li>
</ul>
</div>
<div class="section" id="telnet-console">
<h2>在telnet console里鉴权<a class="headerlink" href="#telnet-console" title="永久链接至标题"></a></h2>
<p>连接到arthas后直接执行命令会提示需要鉴权</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">[arthas@37430]$ help
Error! command not permitted, try to use &#x27;auth&#x27; command to authenticates.</pre></div>
</div>
<p>使用<code class="docutils literal notranslate"><span class="pre">auth</span></code>命令来鉴权,成功之后可以执行其它命令。</p>
<div class="highlight-default notranslate"><pre class="literal-block">[arthas@37430]$ auth ppp
Authentication result: true</pre>
</div>
<ul class="simple">
<li><p>可以通过 <code class="docutils literal notranslate"><span class="pre">--username</span></code> 选项来指定用户,默认值是<code class="docutils literal notranslate"><span class="pre">arthas</span></code></p></li>
</ul>
</div>
<div class="section" id="web-console">
<h2>Web console密码验证<a class="headerlink" href="#web-console" title="永久链接至标题"></a></h2>
<p>打开浏览器,会有弹窗提示需要输入 用户名 和 密码。</p>
<p>成功之后,则可以直接连接上 web console。</p>
</div>
<div class="section" id="http-api">
<h2>HTTP API 验证<a class="headerlink" href="#http-api" title="永久链接至标题"></a></h2>
<div class="section" id="authorization-header">
<h3>Authorization Header方式推荐<a class="headerlink" href="#authorization-header" title="永久链接至标题"></a></h3>
<p>Arthas 采用的是 HTTP 标准的 Basic Authorization客户端请求时增加对应的header即可。</p>
<ul class="simple">
<li><p>参考:<a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication">https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication</a></p></li>
</ul>
<p>例如,用户名是:<code class="docutils literal notranslate"><span class="pre">admin</span></code>,密码是 <code class="docutils literal notranslate"><span class="pre">admin</span></code>,则组合为字符串: <code class="docutils literal notranslate"><span class="pre">admin:admin</span></code>base64结果是 <code class="docutils literal notranslate"><span class="pre">YWRtaW46YWRtaW4=</span></code>则HTTP 请求增加<code class="docutils literal notranslate"><span class="pre">Authorization</span></code> header</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">curl &#x27;http://localhost:8563/api&#x27; \
-H &#x27;Authorization: Basic YWRtaW46YWRtaW4=&#x27; \
--data-raw &#x27;{&quot;action&quot;:&quot;exec&quot;,&quot;command&quot;:&quot;version&quot;}&#x27; </pre></div>
</div>
</div>
<div class="section" id="url">
<h3>URL 参数传递方式<a class="headerlink" href="#url" title="永久链接至标题"></a></h3>
<p>为了方便各种特殊情况,支持了以 parameters 方式传递username和password。比如</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">curl &#x27;http://localhost:8563/api?password=admin&#x27; \
--data-raw &#x27;{&quot;action&quot;:&quot;exec&quot;,&quot;command&quot;:&quot;version&quot;}&#x27; </pre></div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="options.html" class="btn btn-neutral float-right" title="options" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pwd.html" class="btn btn-neutral float-left" title="pwd" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2018-2020, Alibaba Middleware Group, and contributors
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/alibaba/arthas" target="_blank">Fork me at GitHub</a>
</div>
</div>
<script type="text/javascript" src="_static/add_badges.js"></script>
<script src="https://g.alicdn.com/code/lib/highlight.js/9.13.1/highlight.min.js"></script>
<script src="https://g.alicdn.com/code/lib/highlightjs-line-numbers.js/2.5.0/highlightjs-line-numbers.min.js"></script>
<script>
document.querySelectorAll('div.hljs > pre').forEach(function(block) {
hljs.highlightBlock(block);
hljs.lineNumbersBlock(block);
});
</script>
<script type="text/javascript">document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1279151497'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1279151497' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>base64 &mdash; Arthas 3.4.8 文档</title>
<title>base64 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -148,6 +148,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>批处理功能 &mdash; Arthas 3.4.8 文档</title>
<title>批处理功能 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -114,15 +114,16 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace">monitor/watch/trace相关</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler">profiler/火焰图</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">鉴权</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id3">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id4">管道</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">后台异步任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#web-console">Web Console</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#arthas-properties">Arthas Properties</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#java-agent">以java agent方式启动</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#as-sh-arthas-boot">as.sh 和 arthas-boot 技巧</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id5">用户数据回报</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#id6">其他特性</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#id6">用户数据回报</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="advanced-use.html#id7">其他特性</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="async.html">异步命令支持</a></li>
<li class="toctree-l3"><a class="reference internal" href="save-log.html">执行结果存日志</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">批处理的支持</a><ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cat &mdash; Arthas 3.4.8 文档</title>
<title>cat &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -142,6 +142,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classloader &mdash; Arthas 3.4.8 文档</title>
<title>classloader &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -154,6 +154,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>命令列表 &mdash; Arthas 3.4.8 文档</title>
<title>命令列表 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -142,6 +142,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="#arthas">Arthas 基础命令</a></li>
</ul>
@ -260,6 +261,7 @@
<li class="toctree-l1"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l1"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l1"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l1"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l1"><a class="reference internal" href="options.html">options</a></li>
</ul>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>联系我们 &mdash; Arthas 3.4.8 文档</title>
<title>联系我们 &mdash; Arthas 3.5.0 文档</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard &mdash; Arthas 3.4.8 文档</title>
<title>dashboard &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -151,6 +151,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker &mdash; Arthas 3.4.8 文档</title>
<title>Docker &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>下载 &mdash; Arthas 3.4.8 文档</title>
<title>下载 &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dump &mdash; Arthas 3.4.8 文档</title>
<title>dump &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -146,6 +146,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>echo &mdash; Arthas 3.4.8 文档</title>
<title>echo &mdash; Arthas 3.5.0 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -142,6 +142,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
</ul>

@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 70c5abd44e0a44a2e46cdd796f2fb499
config: c412f8b78ac73ff175c959e5748e006c
tags: 645f666f9bcd5a90fca523b33c5a78b7

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>&lt;no title&gt; &mdash; Arthas 3.4.8 documentation</title>
<title>&lt;no title&gt; &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -55,6 +55,10 @@ Advanced Usage
* [stack](stack.md) - display the stack trace for the specified class and method
* [tt](tt.md) - time tunnel, record the arguments and returned value for the methods and replay
## authentication
* [auth](auth.md) - authentication
## options
* [options](options.md) - check/set Arthas global options

@ -0,0 +1,69 @@
auth
===
> Authenticates the current session
### Configure username and password
When attaching, you can specify a password on the command line. such as:
```
java -jar arthas-boot.jar --password ppp
```
* The user can be specified by the `--username` option, the default value is `arthas`.
* You can also configure username/password in `arthas.properties`. The priority of the command line is higher than that of the configuration file.
* If only `username` is configured and no `password` is configured, a random password will be generated and printed in `~/logs/arthas/arthas.log`
```
Using generated security password: 0vUBJpRIppkKuZ7dYzYqOKtranj4unGh
```
### Authenticate in the telnet console
After connecting to arthas, directly executing the command will prompt for authentication:
```bash
[arthas@37430]$ help
Error! command not permitted, try to use 'auth' command to authenticates.
```
Use the `auth` command to authenticate, and you can execute other commands after success.
```
[arthas@37430]$ auth ppp
Authentication result: true
```
* The user can be specified by the `--username` option, the default value is `arthas`.
### Web console Authentication
Open the browser, there will be a pop-up window prompting you to enter your username and password.
After success, you can directly connect to the web console.
### HTTP API Authentication
#### HTTP Authorization Header(recommended)
Arthas uses the HTTP standard Basic Authorization.
* Reference: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
For example, if the user name is: `admin` and the password is `admin`, the combination is a string: `admin:admin`, the base64 result is: `YWRtaW46YWRtaW4=`, then the HTTP request adds the `Authorization` header:
```bash
curl 'http://localhost:8563/api' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{"action":"exec","command":"version"}'
```
#### URL parameters
It supports passing username and password in parameters. such as:
```bash
curl 'http://localhost:8563/api?password=admin' \
--data-raw '{"action":"exec","command":"version"}'
```

@ -39,6 +39,7 @@ All Commands
* [base64](base64.md)
* [tee](tee.md)
* [pwd](pwd.md)
* [auth](auth.md)
* [options](options.md)

@ -3,6 +3,10 @@
> For questions that are not in this list, please search in issues. [https://github.com/alibaba/arthas/issues](https://github.com/alibaba/arthas/issues)
##### Where is the log file?
Log file path: `~/logs/arthas/arthas.log`
##### How much impact does Arthas attach have on the performance of the original process?
[https://github.com/alibaba/arthas/issues/44](https://github.com/alibaba/arthas/issues/44)
@ -15,6 +19,7 @@ com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: ta
1. Check whether the current user and the target java process are consistent. If they are inconsistent, switch to the same user. JVM can only attach java processes under the same user.
2. Try to use `jstack -l $pid`. If the process does not respond, it means that the process may freeze and fail to respond to the JVM attach signal. So Arthas based on the attach mechanism cannot work. Try to use `jmap` heapdump to analyze.
3. Try to attach arthas-demo in [quick-start](quick-start.md).
4. For more information: [https://github.com/alibaba/arthas/issues/347](https://github.com/alibaba/arthas/issues/347)
##### Can commands such as trace/watch enhance the classes in jdk?
@ -74,4 +79,8 @@ For example: use skywalking V8.1.0 below [cannot trace, watch classes enhanced b
##### Can I use arthas offline?
Yes. Just download the full size package and unzip it, refer to: [Download](download.md).
Yes. Just download the full size package and unzip it, refer to: [Download](download.md).
##### Attach the process with pid 1 in docker/k8s failed
Reference: [https://github.com/alibaba/arthas/issues/362#issuecomment-448185416](https://github.com/alibaba/arthas/issues/362#issuecomment-448185416)

@ -492,6 +492,10 @@ curl -Ss -XPOST http://localhost:8563/api -d '''
}
```
### Authentication
* Reference: [auth](auth.md)
### Web UI
![](../_static/arthas-web-ui.png "arthas web ui")

@ -90,6 +90,8 @@ For the above example, go to [http://47.75.156.201/arthas/?port=80](http://47.75
### Best practices
> Note that the agentId must be unique, otherwise it will conflict on the tunnel server and not work properly.
If the arthas agent is configured with `appName`, the generated agentId will be prefixed with `appName`.
For example, if you add the startup parameter `as.sh --tunnel-server 'ws://127.0.0.1:7777/ws' --app-name demoapp`, the generated agentId might be `demoapp_URJZ5L48RPBR2ALI5K4V`.

@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.4.8',
VERSION: '3.5.0',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Usage &mdash; Arthas 3.4.8 documentation</title>
<title>Advanced Usage &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pipe">pipe</a></li>
@ -279,6 +280,12 @@
<li><p><a class="reference internal" href="tt.html"><span class="doc">tt</span></a> - time tunnel, record the arguments and returned value for the methods and replay</p></li>
</ul>
</div>
<div class="section" id="authentication">
<h2>authentication<a class="headerlink" href="#authentication" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><a class="reference internal" href="auth.html"><span class="doc">auth</span></a> - authentication</p></li>
</ul>
</div>
<div class="section" id="options">
<h2>options<a class="headerlink" href="#options" title="Permalink to this headline"></a></h2>
<ul class="simple">

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fundamental Fields in Expressions &mdash; Arthas 3.4.8 documentation</title>
<title>Fundamental Fields in Expressions &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -146,6 +146,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Start as a Java Agent &mdash; Arthas 3.4.8 documentation</title>
<title>Start as a Java Agent &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#pipe">pipe</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Properties &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Properties &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#pipe">pipe</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Async Jobs &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Async Jobs &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#pipe">pipe</a></li>

@ -0,0 +1,378 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>auth &mdash; Arthas 3.5.0 documentation</title>
<link rel="shortcut icon" href="_static/favicon.ico"/>
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/overrides.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="options" href="options.html" />
<link rel="prev" title="pwd" href="pwd.html" />
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
window.location.href = "https://arthas.aliyun.com/doc/" + window.location.href.substr("https://alibaba.github.io/arthas/".length);
}
</script>
<script src="_static/center_page.js"></script>
<link rel="stylesheet" href="https://g.alicdn.com/code/lib/highlight.js/9.13.1/styles/github.min.css">
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home"> Arthas
</a>
<div class="version">
3.5.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1"><a class="reference external" href="https://arthas.aliyun.com/">Home</a></li>
<li class="toctree-l1"><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en">Online tutorials(Recommend)</a></li>
<li class="toctree-l1"><a class="reference internal" href="install-detail.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="download.html">Download</a></li>
<li class="toctree-l1"><a class="reference internal" href="quick-start.html">Quick start</a></li>
<li class="toctree-l1"><a class="reference internal" href="advanced-use.html">Advanced usage</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="commands.html">Commands</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="dashboard.html">dashboard</a></li>
<li class="toctree-l2"><a class="reference internal" href="thread.html">thread</a></li>
<li class="toctree-l2"><a class="reference internal" href="jvm.html">jvm</a></li>
<li class="toctree-l2"><a class="reference internal" href="sysprop.html">sysprop</a></li>
<li class="toctree-l2"><a class="reference internal" href="sysenv.html">sysenv</a></li>
<li class="toctree-l2"><a class="reference internal" href="vmoption.html">vmoption</a></li>
<li class="toctree-l2"><a class="reference internal" href="perfcounter.html">perfcounter</a></li>
<li class="toctree-l2"><a class="reference internal" href="logger.html">logger</a></li>
<li class="toctree-l2"><a class="reference internal" href="mbean.html">mbean</a></li>
<li class="toctree-l2"><a class="reference internal" href="getstatic.html">getstatic</a></li>
<li class="toctree-l2"><a class="reference internal" href="ognl.html">ognl</a></li>
<li class="toctree-l2"><a class="reference internal" href="sc.html">sc</a></li>
<li class="toctree-l2"><a class="reference internal" href="sm.html">sm</a></li>
<li class="toctree-l2"><a class="reference internal" href="dump.html">dump</a></li>
<li class="toctree-l2"><a class="reference internal" href="heapdump.html">heapdump</a></li>
<li class="toctree-l2"><a class="reference internal" href="jad.html">jad</a></li>
<li class="toctree-l2"><a class="reference internal" href="classloader.html">classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="mc.html">mc</a></li>
<li class="toctree-l2"><a class="reference internal" href="retransform.html">retransform</a></li>
<li class="toctree-l2"><a class="reference internal" href="redefine.html">redefine</a></li>
<li class="toctree-l2"><a class="reference internal" href="monitor.html">monitor</a></li>
<li class="toctree-l2"><a class="reference internal" href="watch.html">watch</a></li>
<li class="toctree-l2"><a class="reference internal" href="trace.html">trace</a></li>
<li class="toctree-l2"><a class="reference internal" href="stack.html">stack</a></li>
<li class="toctree-l2"><a class="reference internal" href="tt.html">tt</a></li>
<li class="toctree-l2"><a class="reference internal" href="profiler.html">profiler</a></li>
<li class="toctree-l2"><a class="reference internal" href="cat.html">cat</a></li>
<li class="toctree-l2"><a class="reference internal" href="echo.html">echo</a></li>
<li class="toctree-l2"><a class="reference internal" href="grep.html">grep</a></li>
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">auth</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#configure-username-and-password">Configure username and password</a></li>
<li class="toctree-l3"><a class="reference internal" href="#authenticate-in-the-telnet-console">Authenticate in the telnet console</a></li>
<li class="toctree-l3"><a class="reference internal" href="#web-console-authentication">Web console Authentication</a></li>
<li class="toctree-l3"><a class="reference internal" href="#http-api-authentication">HTTP API Authentication</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#http-authorization-header-recommended">HTTP Authorization Header(recommended)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#url-parameters">URL parameters</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="web-console.html">WebConsole</a></li>
<li class="toctree-l1"><a class="reference internal" href="tunnel.html">Arthas Tunnel</a></li>
<li class="toctree-l1"><a class="reference internal" href="http-api.html">Http API</a></li>
<li class="toctree-l1"><a class="reference internal" href="docker.html">Docker</a></li>
<li class="toctree-l1"><a class="reference internal" href="spring-boot-starter.html">Arthas Spring Boot Starter</a></li>
<li class="toctree-l1"><a class="reference internal" href="idea-plugin.html">IDEA Plugin</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/issues?q=label%3Auser-case">User cases</a></li>
<li class="toctree-l1"><a class="reference internal" href="faq.html">FAQ</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas">Star me at GitHub</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#">Compile and debug/CONTRIBUTING</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/releases">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="contact-us.html">Contact us</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Arthas</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> &raquo;</li>
<li><a href="commands.html">All Commands</a> &raquo;</li>
<li>auth</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/alibaba/arthas/blob/master/site/src/site/sphinx/en/auth.md" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="auth">
<h1>auth<a class="headerlink" href="#auth" title="Permalink to this headline"></a></h1>
<blockquote>
<div><p>Authenticates the current session</p>
</div></blockquote>
<div class="section" id="configure-username-and-password">
<h2>Configure username and password<a class="headerlink" href="#configure-username-and-password" title="Permalink to this headline"></a></h2>
<p>When attaching, you can specify a password on the command line. such as:</p>
<div class="highlight-default notranslate"><pre class="literal-block">java -jar arthas-boot.jar --password ppp</pre>
</div>
<ul>
<li><p>The user can be specified by the <code class="docutils literal notranslate"><span class="pre">--username</span></code> option, the default value is <code class="docutils literal notranslate"><span class="pre">arthas</span></code>.</p></li>
<li><p>You can also configure username/password in <code class="docutils literal notranslate"><span class="pre">arthas.properties</span></code>. The priority of the command line is higher than that of the configuration file.</p></li>
<li><p>If only <code class="docutils literal notranslate"><span class="pre">username</span></code> is configured and no <code class="docutils literal notranslate"><span class="pre">password</span></code> is configured, a random password will be generated and printed in <code class="docutils literal notranslate"><span class="pre">~/logs/arthas/arthas.log</span></code></p>
<div class="highlight-default notranslate"><pre class="literal-block">Using generated security password: 0vUBJpRIppkKuZ7dYzYqOKtranj4unGh</pre>
</div>
</li>
</ul>
</div>
<div class="section" id="authenticate-in-the-telnet-console">
<h2>Authenticate in the telnet console<a class="headerlink" href="#authenticate-in-the-telnet-console" title="Permalink to this headline"></a></h2>
<p>After connecting to arthas, directly executing the command will prompt for authentication:</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">[arthas@37430]$ help
Error! command not permitted, try to use &#x27;auth&#x27; command to authenticates.</pre></div>
</div>
<p>Use the <code class="docutils literal notranslate"><span class="pre">auth</span></code> command to authenticate, and you can execute other commands after success.</p>
<div class="highlight-default notranslate"><pre class="literal-block">[arthas@37430]$ auth ppp
Authentication result: true</pre>
</div>
<ul class="simple">
<li><p>The user can be specified by the <code class="docutils literal notranslate"><span class="pre">--username</span></code> option, the default value is <code class="docutils literal notranslate"><span class="pre">arthas</span></code>.</p></li>
</ul>
</div>
<div class="section" id="web-console-authentication">
<h2>Web console Authentication<a class="headerlink" href="#web-console-authentication" title="Permalink to this headline"></a></h2>
<p>Open the browser, there will be a pop-up window prompting you to enter your username and password.</p>
<p>After success, you can directly connect to the web console.</p>
</div>
<div class="section" id="http-api-authentication">
<h2>HTTP API Authentication<a class="headerlink" href="#http-api-authentication" title="Permalink to this headline"></a></h2>
<div class="section" id="http-authorization-header-recommended">
<h3>HTTP Authorization Header(recommended)<a class="headerlink" href="#http-authorization-header-recommended" title="Permalink to this headline"></a></h3>
<p>Arthas uses the HTTP standard Basic Authorization.</p>
<ul class="simple">
<li><p>Reference: <a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication">https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication</a></p></li>
</ul>
<p>For example, if the user name is: <code class="docutils literal notranslate"><span class="pre">admin</span></code> and the password is <code class="docutils literal notranslate"><span class="pre">admin</span></code>, the combination is a string: <code class="docutils literal notranslate"><span class="pre">admin:admin</span></code>, the base64 result is: <code class="docutils literal notranslate"><span class="pre">YWRtaW46YWRtaW4=</span></code>, then the HTTP request adds the <code class="docutils literal notranslate"><span class="pre">Authorization</span></code> header:</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">curl &#x27;http://localhost:8563/api&#x27; \
-H &#x27;Authorization: Basic YWRtaW46YWRtaW4=&#x27; \
--data-raw &#x27;{&quot;action&quot;:&quot;exec&quot;,&quot;command&quot;:&quot;version&quot;}&#x27; </pre></div>
</div>
</div>
<div class="section" id="url-parameters">
<h3>URL parameters<a class="headerlink" href="#url-parameters" title="Permalink to this headline"></a></h3>
<p>It supports passing username and password in parameters. such as:</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">curl &#x27;http://localhost:8563/api?password=admin&#x27; \
--data-raw &#x27;{&quot;action&quot;:&quot;exec&quot;,&quot;command&quot;:&quot;version&quot;}&#x27; </pre></div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="options.html" class="btn btn-neutral float-right" title="options" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pwd.html" class="btn btn-neutral float-left" title="pwd" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2018-2020, Alibaba Middleware Group, and contributors
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/alibaba/arthas" target="_blank">Fork me at GitHub</a>
</div>
</div>
<script type="text/javascript" src="_static/add_badges.js"></script>
<script src="https://g.alicdn.com/code/lib/highlight.js/9.13.1/highlight.min.js"></script>
<script src="https://g.alicdn.com/code/lib/highlightjs-line-numbers.js/2.5.0/highlightjs-line-numbers.min.js"></script>
<script>
document.querySelectorAll('div.hljs > pre').forEach(function(block) {
hljs.highlightBlock(block);
hljs.lineNumbersBlock(block);
});
</script>
<script type="text/javascript">document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1279151497'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1279151497' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>base64 &mdash; Arthas 3.4.8 documentation</title>
<title>base64 &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -143,6 +143,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Batch Processing &mdash; Arthas 3.4.8 documentation</title>
<title>Batch Processing &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#pipe">pipe</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cat &mdash; Arthas 3.4.8 documentation</title>
<title>cat &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classloader &mdash; Arthas 3.4.8 documentation</title>
<title>classloader &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -149,6 +149,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All Commands &mdash; Arthas 3.4.8 documentation</title>
<title>All Commands &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>
@ -255,6 +256,7 @@
<li class="toctree-l1"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l1"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l1"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l1"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l1"><a class="reference internal" href="options.html">options</a></li>
</ul>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us &mdash; Arthas 3.4.8 documentation</title>
<title>Contact Us &mdash; Arthas 3.5.0 documentation</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard &mdash; Arthas 3.4.8 documentation</title>
<title>dashboard &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -146,6 +146,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker &mdash; Arthas 3.4.8 documentation</title>
<title>Docker &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download &mdash; Arthas 3.4.8 documentation</title>
<title>Download &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dump &mdash; Arthas 3.4.8 documentation</title>
<title>dump &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>echo &mdash; Arthas 3.4.8 documentation</title>
<title>echo &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ &mdash; Arthas 3.4.8 documentation</title>
<title>FAQ &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -113,6 +113,7 @@
<li class="toctree-l1"><a class="reference internal" href="idea-plugin.html">IDEA Plugin</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/issues?q=label%3Auser-case">User cases</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">FAQ</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#where-is-the-log-file">Where is the log file?</a></li>
<li class="toctree-l2"><a class="reference internal" href="#how-much-impact-does-arthas-attach-have-on-the-performance-of-the-original-process">How much impact does Arthas attach have on the performance of the original process?</a></li>
<li class="toctree-l2"><a class="reference internal" href="#target-process-not-responding-or-hotspot-vm-not-loaded">target process not responding or HotSpot VM not loaded</a></li>
<li class="toctree-l2"><a class="reference internal" href="#can-commands-such-as-trace-watch-enhance-the-classes-in-jdk">Can commands such as trace/watch enhance the classes in jdk?</a></li>
@ -123,6 +124,7 @@
<li class="toctree-l2"><a class="reference internal" href="#how-to-watch-or-trace-constructor">How to watch or trace constructor?</a></li>
<li class="toctree-l2"><a class="reference internal" href="#java-lang-classformaterror-null-skywalking-arthas-compatible-use">java.lang.ClassFormatError: null, skywalking arthas compatible use</a></li>
<li class="toctree-l2"><a class="reference internal" href="#can-i-use-arthas-offline">Can I use arthas offline?</a></li>
<li class="toctree-l2"><a class="reference internal" href="#attach-the-process-with-pid-1-in-docker-k8s-failed">Attach the process with pid 1 in docker/k8s failed</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas">Star me at GitHub</a></li>
@ -200,6 +202,10 @@
<blockquote>
<div><p>For questions that are not in this list, please search in issues. <a class="reference external" href="https://github.com/alibaba/arthas/issues">https://github.com/alibaba/arthas/issues</a></p>
</div></blockquote>
<div class="section" id="where-is-the-log-file">
<h2>Where is the log file?<a class="headerlink" href="#where-is-the-log-file" title="Permalink to this headline"></a></h2>
<p>Log file path: <code class="docutils literal notranslate"><span class="pre">~/logs/arthas/arthas.log</span></code></p>
</div>
<div class="section" id="how-much-impact-does-arthas-attach-have-on-the-performance-of-the-original-process">
<h2>How much impact does Arthas attach have on the performance of the original process?<a class="headerlink" href="#how-much-impact-does-arthas-attach-have-on-the-performance-of-the-original-process" title="Permalink to this headline"></a></h2>
<p><a class="reference external" href="https://github.com/alibaba/arthas/issues/44">https://github.com/alibaba/arthas/issues/44</a></p>
@ -211,6 +217,7 @@
<li><p>Check whether the current user and the target java process are consistent. If they are inconsistent, switch to the same user. JVM can only attach java processes under the same user.</p></li>
<li><p>Try to use <code class="docutils literal notranslate"><span class="pre">jstack</span> <span class="pre">-l</span> <span class="pre">$pid</span></code>. If the process does not respond, it means that the process may freeze and fail to respond to the JVM attach signal. So Arthas based on the attach mechanism cannot work. Try to use <code class="docutils literal notranslate"><span class="pre">jmap</span></code> heapdump to analyze.</p></li>
<li><p>Try to attach arthas-demo in <a class="reference internal" href="quick-start.html"><span class="doc">quick-start</span></a>.</p></li>
<li><p>For more information: <a class="reference external" href="https://github.com/alibaba/arthas/issues/347">https://github.com/alibaba/arthas/issues/347</a></p></li>
</ol>
</div>
<div class="section" id="can-commands-such-as-trace-watch-enhance-the-classes-in-jdk">
@ -256,6 +263,10 @@
<h2>Can I use arthas offline?<a class="headerlink" href="#can-i-use-arthas-offline" title="Permalink to this headline"></a></h2>
<p>Yes. Just download the full size package and unzip it, refer to: <a class="reference internal" href="download.html"><span class="doc">Download</span></a>.</p>
</div>
<div class="section" id="attach-the-process-with-pid-1-in-docker-k8s-failed">
<h2>Attach the process with pid 1 in docker/k8s failed<a class="headerlink" href="#attach-the-process-with-pid-1-in-docker-k8s-failed" title="Permalink to this headline"></a></h2>
<p>Reference: <a class="reference external" href="https://github.com/alibaba/arthas/issues/362#issuecomment-448185416">https://github.com/alibaba/arthas/issues/362#issuecomment-448185416</a></p>
</div>
</div>

@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Index &mdash; Arthas 3.4.8 documentation</title>
<title>Index &mdash; Arthas 3.5.0 documentation</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>getstatic &mdash; Arthas 3.4.8 documentation</title>
<title>getstatic &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grep &mdash; Arthas 3.4.8 documentation</title>
<title>grep &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>groovy &mdash; Arthas 3.4.8 documentation</title>
<title>groovy &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>heapdump &mdash; Arthas 3.4.8 documentation</title>
<title>heapdump &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -145,6 +145,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Http API &mdash; Arthas 3.4.8 documentation</title>
<title>Http API &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -125,6 +125,7 @@
<li class="toctree-l3"><a class="reference internal" href="#close-session">Close session</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#authentication">Authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="#web-ui">Web UI</a></li>
<li class="toctree-l2"><a class="reference internal" href="#special-command-results">Special command results</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#status">status</a></li>
@ -657,6 +658,12 @@ corresponds to the expression in the corresponding order.</p>
</div>
</div>
</div>
<div class="section" id="authentication">
<h2>Authentication<a class="headerlink" href="#authentication" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>Reference: <a class="reference internal" href="auth.html"><span class="doc">auth</span></a></p></li>
</ul>
</div>
<div class="section" id="web-ui">
<h2>Web UI<a class="headerlink" href="#web-ui" title="Permalink to this headline"></a></h2>
<p><img alt="_images/arthas-web-ui.png" src="_images/arthas-web-ui.png" /></p>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IDEA Plugin &mdash; Arthas 3.4.8 documentation</title>
<title>IDEA Plugin &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Documentation &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Documentation &mdash; Arthas 3.5.0 documentation</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Install Arthas &mdash; Arthas 3.4.8 documentation</title>
<title>Install Arthas &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jad &mdash; Arthas 3.4.8 documentation</title>
<title>jad &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -148,6 +148,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jvm &mdash; Arthas 3.4.8 documentation</title>
<title>jvm &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -142,6 +142,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Console Keymap &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Console Keymap &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>logger &mdash; Arthas 3.4.8 documentation</title>
<title>logger &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -148,6 +148,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manually Install Arthas &mdash; Arthas 3.4.8 documentation</title>
<title>Manually Install Arthas &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mbean &mdash; Arthas 3.4.8 documentation</title>
<title>mbean &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mc &mdash; Arthas 3.4.8 documentation</title>
<title>mc &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>monitor &mdash; Arthas 3.4.8 documentation</title>
<title>monitor &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -146,6 +146,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

Binary file not shown.

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ognl &mdash; Arthas 3.4.8 documentation</title>
<title>ognl &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -145,6 +145,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>options &mdash; Arthas 3.4.8 documentation</title>
<title>options &mdash; Arthas 3.5.0 documentation</title>
@ -39,7 +39,7 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Arthas Tunnel" href="tunnel.html" />
<link rel="prev" title="pwd" href="pwd.html" />
<link rel="prev" title="auth" href="auth.html" />
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
window.location.href = "https://arthas.aliyun.com/doc/" + window.location.href.substr("https://alibaba.github.io/arthas/".length);
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">options</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#view-all-options">View all options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#get-special-option-value">Get special option value</a></li>
@ -356,7 +357,7 @@
<a href="tunnel.html" class="btn btn-neutral float-right" title="Arthas Tunnel" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pwd.html" class="btn btn-neutral float-left" title="pwd" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="auth.html" class="btn btn-neutral float-left" title="auth" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>perfcounter &mdash; Arthas 3.4.8 documentation</title>
<title>perfcounter &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>profiler &mdash; Arthas 3.4.8 documentation</title>
<title>profiler &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -158,6 +158,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pwd &mdash; Arthas 3.4.8 documentation</title>
<title>pwd &mdash; Arthas 3.5.0 documentation</title>
@ -38,7 +38,7 @@
<link rel="stylesheet" href="_static/overrides.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="options" href="options.html" />
<link rel="next" title="auth" href="auth.html" />
<link rel="prev" title="tee" href="tee.html" />
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>
@ -239,7 +240,7 @@
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="options.html" class="btn btn-neutral float-right" title="options" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="auth.html" class="btn btn-neutral float-right" title="auth" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="tee.html" class="btn btn-neutral float-left" title="tee" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quick Start &mdash; Arthas 3.4.8 documentation</title>
<title>Quick Start &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>redefine &mdash; Arthas 3.4.8 documentation</title>
<title>redefine &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -145,6 +145,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Release Notes &mdash; Arthas 3.4.8 documentation</title>
<title>Release Notes &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reset &mdash; Arthas 3.4.8 documentation</title>
<title>reset &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>retransform &mdash; Arthas 3.4.8 documentation</title>
<title>retransform &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -149,6 +149,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log command outputs &mdash; Arthas 3.4.8 documentation</title>
<title>Log command outputs &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#jvm">JVM</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#class-classloader">class/classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#monitor-watch-trace-related">monitor/watch/trace - related</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#authentication">authentication</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#options">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#profiler-flame-graph">profiler/flame graph</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced-use.html#pipe">pipe</a></li>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sc &mdash; Arthas 3.4.8 documentation</title>
<title>sc &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search &mdash; Arthas 3.4.8 documentation</title>
<title>Search &mdash; Arthas 3.5.0 documentation</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.8
3.5.0
</div>

File diff suppressed because one or more lines are too long

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sm &mdash; Arthas 3.4.8 documentation</title>
<title>sm &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -141,6 +141,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Spring Boot Starter &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Spring Boot Starter &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>stack &mdash; Arthas 3.4.8 documentation</title>
<title>stack &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -147,6 +147,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Start Arthas &mdash; Arthas 3.4.8 documentation</title>
<title>Start Arthas &mdash; Arthas 3.5.0 documentation</title>
@ -71,7 +71,7 @@
<div class="version">
3.4.8
3.5.0
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysenv &mdash; Arthas 3.4.8 documentation</title>
<title>sysenv &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -144,6 +144,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysprop &mdash; Arthas 3.4.8 documentation</title>
<title>sysprop &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -145,6 +145,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tee &mdash; Arthas 3.4.8 documentation</title>
<title>tee &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -137,6 +137,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>thread &mdash; Arthas 3.4.8 documentation</title>
<title>thread &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -151,6 +151,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>trace &mdash; Arthas 3.4.8 documentation</title>
<title>trace &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -153,6 +153,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tt &mdash; Arthas 3.4.8 documentation</title>
<title>tt &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -149,6 +149,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Tunnel &mdash; Arthas 3.4.8 documentation</title>
<title>Arthas Tunnel &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -257,6 +257,9 @@ id URJZ5L48RPBR2ALI5K4V</pre></div>
</div>
<div class="section" id="best-practices">
<h2>Best practices<a class="headerlink" href="#best-practices" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>Note that the agentId must be unique, otherwise it will conflict on the tunnel server and not work properly.</p>
</div></blockquote>
<p>If the arthas agent is configured with <code class="docutils literal notranslate"><span class="pre">appName</span></code>, the generated agentId will be prefixed with <code class="docutils literal notranslate"><span class="pre">appName</span></code>.</p>
<p>For example, if you add the startup parameter <code class="docutils literal notranslate"><span class="pre">as.sh</span> <span class="pre">--tunnel-server</span> <span class="pre">'ws://127.0.0.1:7777/ws'</span> <span class="pre">--app-name</span> <span class="pre">demoapp</span></code>, the generated agentId might be <code class="docutils literal notranslate"><span class="pre">demoapp_URJZ5L48RPBR2ALI5K4V</span></code>.</p>
<p>Tunnel server will use <code class="docutils literal notranslate"><span class="pre">_</span></code> as a delimiter to extract <code class="docutils literal notranslate"><span class="pre">appName</span></code>, which is convenient to manage by application.</p>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vmoption &mdash; Arthas 3.4.8 documentation</title>
<title>vmoption &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -145,6 +145,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>watch &mdash; Arthas 3.4.8 documentation</title>
<title>watch &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>
@ -161,6 +161,7 @@
<li class="toctree-l2"><a class="reference internal" href="base64.html">base64</a></li>
<li class="toctree-l2"><a class="reference internal" href="tee.html">tee</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2"><a class="reference internal" href="auth.html">auth</a></li>
<li class="toctree-l2"><a class="reference internal" href="options.html">options</a></li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
</ul>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Console &mdash; Arthas 3.4.8 documentation</title>
<title>Web Console &mdash; Arthas 3.5.0 documentation</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.8
3.5.0
</div>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save