不支持查看数组类型对象实例?
- [x] 我已经在 issues 里搜索,没有重复的issue。
环境信息
arthas-boot.jar或者as.sh的版本: 3.7.2- Arthas 版本: 3.7.2
- 操作系统版本: CentOS 6
- 目标进程的JVM版本: JDK8
- 执行
arthas-boot的版本: 3.7.2
重现问题的步骤
- vmtool执行:vmtool --action getInstances --className "java.lang.Object[]"
期望的结果
Object[]数组分配
实际运行的结果
Can not find class by class name: java.lang.Object[].
我也是一个arthas使用者。今天无意中翻Issues发现你提的这个问题。自己试了试,发现是支持的。
vmtool --action getInstances --className [Ljava.lang.String; --limit 10
运行的结果
@String[][][
@String[][isEmpty=false;size=3],
@String[][isEmpty=false;size=2],
@String[][isEmpty=false;size=13],
@String[][isEmpty=false;size=13],
@String[][isEmpty=false;size=13],
@String[][isEmpty=false;size=13],
@String[][isEmpty=false;size=13],
@String[][isEmpty=false;size=256],
@String[][isEmpty=false;size=256],
@String[][isEmpty=false;size=1],
]
注意 className的写法 字符串数组 [Ljava.lang.String; 分号不能省略。
hi zwb9412,
Ok..Thanks for the update. Pls leave this comments in the portal itself so that I can keep posted and update for tracking purposes.
Regards, Basheer
On Tue, Feb 25, 2025 at 4:12 PM zwb9412 @.***> wrote:
我也是一个arthas使用者。今天无意中翻Issues发现你提的这个问题。自己试了试,发现是支持的。
vmtool --action getInstances --className [Ljava.lang.String; --limit 10
运行的结果
@String[][][ @String[][isEmpty=false;size=3], @String[][isEmpty=false;size=2], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=256], @String[][isEmpty=false;size=256], @String[][isEmpty=false;size=1], ]
注意 className的写法 字符串数组 [Ljava.lang.String; 分号不能省略。
— Reply to this email directly, view it on GitHub https://github.com/alibaba/arthas/issues/2816#issuecomment-2681055410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTNAS5QDXJ2ZREGQFA5KQ32RQQXTAVCNFSM6AAAAABXZ64VISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2TKNBRGA . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: zwb9412]zwb9412 left a comment (alibaba/arthas#2816) https://github.com/alibaba/arthas/issues/2816#issuecomment-2681055410
我也是一个arthas使用者。今天无意中翻Issues发现你提的这个问题。自己试了试,发现是支持的。
vmtool --action getInstances --className [Ljava.lang.String; --limit 10
运行的结果
@String[][][ @String[][isEmpty=false;size=3], @String[][isEmpty=false;size=2], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=13], @String[][isEmpty=false;size=256], @String[][isEmpty=false;size=256], @String[][isEmpty=false;size=1], ]
注意 className的写法 字符串数组 [Ljava.lang.String; 分号不能省略。
— Reply to this email directly, view it on GitHub https://github.com/alibaba/arthas/issues/2816#issuecomment-2681055410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTNAS5QDXJ2ZREGQFA5KQ32RQQXTAVCNFSM6AAAAABXZ64VISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2TKNBRGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>