Not able to open snapshot in yourkit

Questions about YourKit Java Profiler
Post Reply
Wolvriene
Posts: 6
Joined: Tue Feb 05, 2019 6:43 am

Not able to open snapshot in yourkit

Post by Wolvriene »

Team,

I am unable to open in yourkit tool. Tool is throwing below error

<filename>.hprof is not a valid snapshot file.

Technical details: Unexpected subtag 31 at 3,668,964,592

I tried with multiple heap dumps but observing same issue.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Not able to open snapshot in yourkit

Post by Anton Katilin »

The hprof dump seems corrupt.

On what Java version did you create it?
How was it created: on OutOfMemoryError, manually etc.

To investigate the case we need the problematic hprof file. Could you please zip it, upload to a file sharing site and send the download link to [email protected]
Wolvriene
Posts: 6
Joined: Tue Feb 05, 2019 6:43 am

Re: Not able to open snapshot in yourkit

Post by Wolvriene »

Anton Katilin wrote:The hprof dump seems corrupt.

On what Java version did you create it?
java version "1.8.0_192"

How was it created: on OutOfMemoryError, manually etc.
I have created it manually using jmap command

To investigate the case we need the problematic hprof file. Could you please zip it, upload to a file sharing site and send the download link to [email protected]
Sure i will upload and share the same.
Wolvriene
Posts: 6
Joined: Tue Feb 05, 2019 6:43 am

Re: Not able to open snapshot in yourkit

Post by Wolvriene »

Wolvriene wrote:
Anton Katilin wrote:The hprof dump seems corrupt.

On what Java version did you create it?
java version "1.8.0_192"

How was it created: on OutOfMemoryError, manually etc.
I have created it manually using jmap command

To investigate the case we need the problematic hprof file. Could you please zip it, upload to a file sharing site and send the download link to [email protected]
Sure i will upload and share the same.

i have also tried with other tool like Visual VM , Memory Analyzer (MAT) etc but getting same issue.
Hprof file is of 5 Gb and residing at Production server external network which we need to transfer to internal network, which take ~ 1 day and might getting corrupted while transferring.

Could you please provide advice so it will not get corrupted while transferring

PS : i have tried to ~ 10 times with differnt dumps and getting into the same issue
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Not able to open snapshot in yourkit

Post by Anton Katilin »

How do you transfer the file?

Please ensure you transfer it as a binary file. A text mode transfer will corrupt it.

Anyway, please compare sizes and control sums (e.g. with sha256sum or md5sum) of the file on the remote machine and after you have transferred it to your local machine. They should match.
Post Reply