Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Java 二进制堆转储文件。有没有一种通用的方法来找出传递给程序main()方法的命令行参数?
main()
我倾向于使用 Eclipse MAT 来处理堆转储。
如果main线程还活着,那么应该在堆上引用参数。您应该能够使用 OQL 语句找到它,就像https://stackoverflow.com/a/3675163/32090中提到的那样
main