update doc about tunnel/arthas properties

This commit is contained in:
hengyunabc 2020-11-27 11:06:01 +08:00
parent 7b2b383883
commit f9b70d5902
6 changed files with 44 additions and 7 deletions

View File

@ -10,13 +10,18 @@ Arthas Properties
## 支持的配置项
> 注意配置必须是`驼峰`的和spring boot的`-`风格不一样。spring boot应用才同时支持`驼峰` 和 `-`风格的配置。
```
#arthas.config.overrideAll=true
arthas.telnetPort=3658
arthas.httpPort=8563
arthas.ip=localhost
arthas.ip=127.0.0.1
# seconds
arthas.sessionTimeout=1800
#arthas.appName=demoapp
#arthas.tunnelServer=ws://127.0.0.1:7777/ws
#arthas.agentId=mmmmmmyiddddd
```

View File

@ -8,12 +8,18 @@ The `arthas.properties` file is in the arthas directory.
## Supported configuration items
> Note that the configuration must be `camel case`, which is different from the `-` style of spring boot. Only the spring boot application supports both `camel case` and `-` style configuration.
```
#arthas.config.overrideAll=true
arthas.telnetPort=3658
arthas.httpPort=8563
arthas.ip=localhost
arthas.ip=127.0.0.1
# seconds
arthas.sessionTimeout=1800
#arthas.appName=demoapp
#arthas.tunnelServer=ws://127.0.0.1:7777/ws
#arthas.agentId=mmmmmmyiddddd
```

View File

@ -75,4 +75,16 @@ public class ArthasAttachExample {
}
}
```
```
You can also configure properties:
```java
HashMap<String, String> configMap = new HashMap<String, String>();
configMap.put("arthas.appName", "demo");
configMap.put("arthas.tunnelServer", "ws://127.0.0.1:7777/ws");
ArthasAgent.attach(configMap);
```
> Note that the configuration must be `camel case`, which is different from the `-` style of spring boot. Only the spring boot application supports both `camel case` and `-` style configuration.

View File

@ -8,7 +8,9 @@ For example, in streaming computing, Java processes can be started on different
In this case, Arthas Tunnel Server/Client can be used.
Reference: [Web Console](web-console.md)
Reference:
* [Web Console](web-console.md)
* [Arthas Spring Boot Starter](spring-boot-starter.md)
### Download and deploy arthas tunnel server

View File

@ -77,4 +77,15 @@ public class ArthasAttachExample {
}
}
```
```
也可以配置属性:
```java
HashMap<String, String> configMap = new HashMap<String, String>();
configMap.put("arthas.appName", "demo");
configMap.put("arthas.tunnelServer", "ws://127.0.0.1:7777/ws");
ArthasAgent.attach(configMap);
```
> 注意配置必须是`驼峰`的和spring boot的`-`风格不一样。spring boot应用才同时支持`驼峰` 和 `-`风格的配置。

View File

@ -7,8 +7,9 @@ Arthas Tunnel
在这种情况下可以使用Arthas Tunnel Server/Client。
参考: [Web Console](web-console.md)
参考:
* [Web Console](web-console.md)
* [Arthas Spring Boot Starter](spring-boot-starter.md)
### 下载部署arthas tunnel server