Somebody asked me this problem that he is trying to analyze a considerably huge heap dump, and he is not able to analyze it, because IBM Heap Analyzer is not starting only. The error is – JVM not starting as the space is not getting allocated. He was claiming that the machine RAM is far more than what he is trying to allocate. How to solve this?
The command prompt looks like this-
The reason is simple, it may be the case that the total RAM of the machine is much higher than what you are allocating to analyzer, but there are other processes already occupying some of the virtual memory. You can find out this on Windows 7 OS by going to Task Manager -> Performance Tab -> Resource Monitor Button. (Other Windows versions have similar options to view memory utilization details.) This screen also shows how total physical memory is getting utilized. What is available/free physical memory?
To free some memory, select processes that can be happily shut down. Kill those processes by right clicking and selecting ‘End Process’ options. Make sure you are not killing any process that is necessary for Windows to run. This will free up some space for analyzer. Check on same screen if the free physical memory is more than you allocating. Allocate memory within limit and try running Analyzer. –