alibaba / alibaba/arthas

arthas能否指定对象watch或者vmtool express?

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

Description

求问各位大佬
1. 已知一个对象的内存地址,有办法查看这个对象吗? vmtool只能list出来 不能指定某个内存地址
比如 [java.util.concurrent.CountDownLatch@333f2f09] 我有办法直接查看到333f2f09这个实例吗(而不是通过依赖一层层的找下去)?
2. watch是这样的
[cost=13.008353ms] result=@ArrayList[
@Object[][isEmpty=false;size=1],
@test[test@5fb12998],
null,
]
我能在watch的时候指定监听这个`5fb12998` 内存地址的target吗?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing vmtool and watch command behavior described in the issue, especially how vmtool lists objects and how watch selects a target. Determine whether an object can be addressed by its shown memory identifier in each command. Done means documenting or implementing a supported way to inspect the specified object and use it as watch's target, with coverage for both examples.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.