从堆转储中获取 main() 方法参数
我有一个 Java 二进制堆转储文件。是否有一种通用方法可以找出传递给程序的 main()
方法的命令行参数?
我倾向于使用 Eclipse MAT 来处理堆转储。
I have a Java binary heap dump file. Is there a generic way to find out the command line parameters that were passed in to the program's main()
method?
I tend to use Eclipse MAT for working with heap dumps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果
main
线程仍然存在,那么应该在堆上引用参数。您应该能够使用 OQL 语句找到它,如 https://stackoverflow.com/a/3675163/32090If the
main
thread is still alive then the arguments should be referenced on the heap. You should be able to find it using OQL statement like one mentioned in https://stackoverflow.com/a/3675163/32090