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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the
mainthread 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