Loading objects from .hprof file back into Java program

370 views Asked by At

Is it possible to load objects from an .hprof file back into a Java program? I created a heap dump using VisualVM. I'm trying to use the dump not for analysis, but as a way to load an array of objects that I had in the program at that moment back into a Java program.

If the answer is no, then why not? Is it at least possible in theory? Or does the heap dump lose some information about the objects such that they cannot be recreated.

1

There are 1 answers

2
Marius Jaraminas On

If I understood your question correctly short answer would be no. But you could analyse your .hprof file using Eclipse plugin called: Memory Analyzer to better understand what was happening at the moment.