Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qq1033731787 opened this issue Sep 20, 2024 · 4 comments
Open

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

qq1033731787 opened this issue Sep 20, 2024 · 4 comments

Comments

@qq1033731787
Copy link

求问各位大佬

  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吗?
@qq1033731787
Copy link
Author

@RaymondLam1 @furaul 大佬求助

@qq1033731787
Copy link
Author

@hengyunabc 大佬求助

@hengyunabc
Copy link
Collaborator

1,2 都没办法实现。

想要任意查找对象,可以 heapdump,再用 oql 语句来查询。

@qq1033731787
Copy link
Author

qq1033731787 commented Sep 23, 2024

1,2 都没办法实现。

想要任意查找对象,可以 heapdump,再用 oql 语句来查询。

@hengyunabc 感谢大佬回复,再请教下,为什么可以在express中指定匹配target、params、result的一些成员变量,但是却不能指定内存地址?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants