Too much objects in snapshot

Questions about YourKit Java Profiler
Post Reply
ANZO
Posts: 1
Joined: Sun Oct 21, 2018 5:12 pm

Too much objects in snapshot

Post by ANZO »

Hello.
I'm trying to open 128Gb hprof snapshot and get this error:
"This snapshot cannot be opened because it contains more than 2147483647 objects"
I tried to found smthng similar with this problem at forum, but nothing.
Thank you for answers in advance.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Too much objects in snapshot

Post by Anton Katilin »

Unfortunately, it's a fundamental limitation of the existing version that a snapshot with more than 2^32-1 objects cannot be opened.

As a workaround, please try to reduce the number of objects:
- reduce the heap size of the profiled application in attempt to reduce the number of objects it contains;
- explicitly force garbage collection several times in a row before capturing a snapshot (unreachable objects count too, so let them be collected).
Post Reply