Issue
I have a heap dump that is causing out of memory exception for my program, the size for the heap dump is 12GB because of which I am unable to load it in my MAT analyser, what are the alternatives I can try, or is there a way I can upload the heap dump to MAT.
Solution
If you have a server with good amount of free memory, then you can try to run MAT on that server after increasing it's heap size. The more memory you allocate to MAT, the faster it will operate.
In MemoryAnalyzer.ini file you'll get -Xmx option to change max heap size of MAT. MAT documentation also suggests to disable GC overhead limit.
-vmargs
-Xmx18g
-XX:-UseGCOverheadLimit
You can also try to use ParseHeapDump script to run MAT in "headless" mode. There are other tools like visualvm but you need to allocate it almost similar amount of memory to process this large heap dump.
As far as I know, there is no online version of MAT. There is other online option is heaphero but please be careful while uploading heap dump to third party sites as heap dumps may contain sensitive information.
Answered By - suv3ndu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.