Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Not able to open snapshot in yourkit

Moderators: Vladimir Kondratyev, Anton Katilin

Not able to open snapshot in yourkit

Postby Wolvriene » Tue Feb 05, 2019 6:53 am

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.
Wolvriene
 
Posts: 6
Joined: Tue Feb 05, 2019 6:43 am

Re: Not able to open snapshot in yourkit

Postby Anton Katilin » Tue Feb 05, 2019 9:51 am

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 support@yourkit.com
Anton Katilin
 
Posts: 5788
Joined: Wed Aug 11, 2004 8:37 am

Re: Not able to open snapshot in yourkit

Postby Wolvriene » Tue Feb 05, 2019 11:20 am

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 support@yourkit.com

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

Postby Wolvriene » Tue Feb 05, 2019 11:32 am

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 support@yourkit.com

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
Wolvriene
 
Posts: 6
Joined: Tue Feb 05, 2019 6:43 am

Re: Not able to open snapshot in yourkit

Postby Anton Katilin » Tue Feb 05, 2019 3:30 pm

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.
Anton Katilin
 
Posts: 5788
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron