mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-04 05:09:54 +08:00
update doc about tunnel/arthas properties
This commit is contained in:
parent
7b2b383883
commit
f9b70d5902
@ -10,13 +10,18 @@ Arthas Properties
|
|||||||
## 支持的配置项
|
## 支持的配置项
|
||||||
|
|
||||||
|
|
||||||
|
> 注意配置必须是`驼峰`的,和spring boot的`-`风格不一样。spring boot应用才同时支持`驼峰` 和 `-`风格的配置。
|
||||||
|
|
||||||
```
|
```
|
||||||
#arthas.config.overrideAll=true
|
#arthas.config.overrideAll=true
|
||||||
arthas.telnetPort=3658
|
arthas.telnetPort=3658
|
||||||
arthas.httpPort=8563
|
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.tunnelServer=ws://127.0.0.1:7777/ws
|
||||||
#arthas.agentId=mmmmmmyiddddd
|
#arthas.agentId=mmmmmmyiddddd
|
||||||
```
|
```
|
||||||
|
@ -8,12 +8,18 @@ The `arthas.properties` file is in the arthas directory.
|
|||||||
|
|
||||||
## Supported configuration items
|
## 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.config.overrideAll=true
|
||||||
arthas.telnetPort=3658
|
arthas.telnetPort=3658
|
||||||
arthas.httpPort=8563
|
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.tunnelServer=ws://127.0.0.1:7777/ws
|
||||||
#arthas.agentId=mmmmmmyiddddd
|
#arthas.agentId=mmmmmmyiddddd
|
||||||
```
|
```
|
||||||
|
@ -76,3 +76,15 @@ 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.
|
@ -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.
|
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
|
### Download and deploy arthas tunnel server
|
||||||
|
|
||||||
|
@ -78,3 +78,14 @@ 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应用才同时支持`驼峰` 和 `-`风格的配置。
|
@ -7,8 +7,9 @@ Arthas Tunnel
|
|||||||
|
|
||||||
在这种情况下,可以使用Arthas Tunnel Server/Client。
|
在这种情况下,可以使用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
|
### 下载部署arthas tunnel server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user