Skip to content

Commit

Permalink
support disabledCommands part 3. #1729
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Jun 10, 2021
1 parent dbf6301 commit b17a0cd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions site/src/site/sphinx/arthas-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ arthas.sessionTimeout=1800

> 如果是防止一个机器上启动多个 arthas端口冲突。可以配置为随机端口,或者配置为 -1,并且通过tunnel server来使用arthas。

### 禁止指定命令

> since 3.5.2
比如配置:

```
arthas.disabledCommands=stop,dump
```

也可以在命令行配置: `--disabled-commands stop,dump`

> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。
## 配置的优先级

配置的优先级是:命令行参数 > System Env > System Properties > arthas.properties 。
Expand Down
16 changes: 16 additions & 0 deletions site/src/site/sphinx/en/arthas-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ arthas.sessionTimeout=1800

> If you want to prevent multiple arthas port conflicts on a machine. It can be configured as a random port, or configured as -1, and use arthas through the tunnel server.

### disable specify commands

> since 3.5.2
Such as configuration:

```
arthas.disabledCommands=stop,dump
```

It can also be configured on the command line: `--disabled-commands stop,dump`.

> By default, arthas-spring-boot-starter will disable the `stop` command.

## Configured order

The order of configuration is: command line parameters > System Env > System Properties > arthas.properties.
Expand Down
2 changes: 2 additions & 0 deletions site/src/site/sphinx/en/spring-boot-starter.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws

All supported configuration: [Reference](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java)

> By default, arthas-spring-boot-starter will disable the `stop` command.
Reference: [Arthas Properties](arthas-properties.md)

### View Endpoint Information
Expand Down
2 changes: 2 additions & 0 deletions site/src/site/sphinx/spring-boot-starter.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws

全部支持的配置项:[参考](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java)

> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。
参考:[Arthas Properties](arthas-properties.md)

### 查看Endpoint信息
Expand Down

0 comments on commit b17a0cd

Please sign in to comment.