I acquired a heap dump from a OpenJ9 java application using the command
jcmd <pid> GC.heap_dump
Then I open it on Eclipse Memory Analyzer to check a specific class, but when I tried to see the content of a byte array attribute of this class all the bytes appear as zero.
I tried looking to other byte array references, but all of them are the same.
Is there a way to see it content with the file that I have or I need to generate the heap dump in a different way?
In a heap dump, all primitive-type fields are cleared intentionally so customers are not sending sensitive data to service providers for analysis.
If you want to examine such data yourself, use jcmd Dump.system
together with the extension to Eclipse Memory Analyzer for reading system dumps. You can find instructions for adding that extension at https://www.eclipse.org/openj9/docs/dump_systemdump/.