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.
Too much objects in snapshot
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Too much objects in snapshot
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).
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).