alibaba / alibaba/arthas

能否给arthas-agent.jar增加启动参数(启动后自动执行的命令或脚本)

Open
#3,065 5 comments 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

现在的arthas-agent.jar有一个很大的遗憾,就是不能在java程序启动时,就自动执行设定好的命令或脚本。很多不熟悉的java应用或第3方应用,需要启动过程中就执行的目标监听,因为等程序启动后,它就不能调用了,也就没办法监听。

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

### 环境信息

* `arthas-boot.jar` 或者 `as.sh` 的版本: [4.0.5](https://github.com/alibaba/arthas/releases/tag/arthas-all-4.0.5)
* Arthas 版本: 4.0.5
* 操作系统版本: macos、rocky linux、windows
* 目标进程的JVM版本: 1.8
* 执行`arthas-boot`的版本: 4.0.5

Contributor guide

Open the contributing guide

Research direction

Start by reading the startup flow for arthas-agent.jar, arthas-boot.jar, and as.sh. Clarify how a startup command or script should be specified and when it must run; done means the chosen interface reliably executes the requested command or script during target JVM startup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.