alibaba / alibaba/arthas

arthas.properties的配置对于arthas-client不生效

Open
#2,425 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

- [x] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。

### 环境信息

* `arthas-boot.jar` : 3.6.7
* 操作系统版本: windows 10

### 重现问题的步骤

参考[文档](https://arthas.aliyun.com/doc/arthas-properties.html)配置了arthas.properties,其中修改了target-ip参数。
然后通过java -jar arthas-boot.jar 命令启动,已确认配置可以生效(其他机器可以远程连接到本机的arthas),但是启动的时候arthas-client还是会去连接127.0.0.1,导致本机的控制台出不来。

查看源码发现arthas.properties加载的逻辑是在core模块的com.taobao.arthas.core.server.ArthasBootstrap,而arthas-client是通过boot模块的com.taobao.arthas.boot.Bootstrap启动的,client和core是并行的关系。所以client无法获取到arthas.properties的值而只能通过命令行去配置

### 期望的结果

arthas.properties是否可以在boot模块加载,从而用于整个系统呢

Contributor guide

Open the contributing guide

Research direction

Start with boot's com.taobao.arthas.boot.Bootstrap and core's com.taobao.arthas.core.server.ArthasBootstrap to trace how arthas.properties is loaded and how arthas-client receives its connection settings. Reproduce the Windows 10 case with arthas-boot.jar 3.6.7 and a changed target-ip; done means the client uses that configured address and the local console starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.