on 03-18-2008 10:37 PM
Hello,
I have a huge heap dump .hprof file (800 MB) in size and I tried to open it with memory analyzer in Eclipse. After parsing the file till 4%, I get internal error occurred. Java heap space. My system has 2GB memory. Below is the command I used to launch eclipse. Can someone help me with this ? Many thanks for your time.
C:\eclipse\eclipse.exe -vmargs -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=256M
I have JRE 1.6.0_05-b13 installed on the system.
Thanks,
Hari
Hello Hari,
I would recommend that you first try to give more memory to eclipse and see if this helps. Try with 1200m for example.
I can't give you a precise estimation how much memory will be needed, as the limiting factor is the number of objects in the heap dump (not the size of the file). This number varies from case to case. In 800mb you may have only a few huge objects, but it may also happen that there are more than 20.000.000 of very small objects.
So, please try with more memory, and let me know if you still encounter the problem.
Regards,
Krum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
not necessarily. If the parsing fails during the calculation of the Dominator Tree, you can still open the heap dump the next time. This is done in purpose (though not intuitive) because the DomTree is the last and one of the expensive steps during the parsing. However, you are missing some functionality like the tree. You can do some heap walking that nevertheless can be helpful..
- Andreas.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.