나의 에러 일지
Eclipse MAT - An internal error occurred during: "Parsing heap dump" 원인과 해결 방법
Cold Bean
2023. 10. 27. 13:12
728x90
배경
OutOfMemory 에러가 발생해 원인을 분석하기 위해서 heap dump 파일을 Eclipse MAT에서 실행하니 아래와 같은 에러가 발생했다.
An internal error occurred during: "Parsing heap dump" Java heap space
원인
Eclipse MAT 기본 heap 크기는 1G로 할당되어 있어서, Heap Dump 파일이 이보다 큰 경우 Parsing할 때 위와 같은 에러를 만나게 된다. 이 문제를 해결하기 위해서는 MAT에 할당된 메모리를 높여야 한다.
해결 방법
- 설정 파일에서 heap 크기 변경
$ vim /Applications/mat.app/Contents/Eclipase/MemoryAnalyzer.ini
- xmx 옵션을 수정해서 최대 heap 크기를 2G로 설정해주었다.
...
-Xmx2048m
...
참조
Eclipse Memory Analyzer – Java heap space Error when Opening an hprof
Hello Everyone, Interesting thing today; so in my adventures in running a diagnostic for why Java crashed; I got… a Java Crash on my computer when trying to open the crash dump! Okay not rea…
yetanothercharacterkb.wordpress.com
728x90