노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


하나의 메모리 누수를 잡기까지

실행중인 프로세스를 연결하기


jmap

> jmap -histo:live <pid> | more

num    # instances    #bytes    class name  
----------------------------------------------
1:    3062256    677810312    [C  
2:    3176949    76246776        java.lang.String  
3:    29959    32072704        [I  
4:    380080    27365760        xxx.xxx.common.model.xxxx

위의 연결 방법이 거부 당할때

> jmap -F -dump:live, format=b, file=heap.bin <pid>


참조 : http://d2.naver.com/helloworld/1326256



힙 덤프 분석

Eclipse/이클립스 Memory Analyzer ,

다운로드 : Eclipse Marketplace 


덤프 파일 분석 분석


덤프 파일을 읽어서 ( File -> Open Heap Dump ) 분석을 진행...

Dominator Tree, Top Consumers등의 정보를 확인하여, 가장 큰 원인을 찾아 본다.


참조 : http://www.vogella.com/tutorials/EclipseMemoryAnalyzer/article.html



Java Memory Analysis

메모리 분석 힙(Heap)


jhat

> jhat -J-mx2048m heap.bin   [http://localhost:7000/]


참조 : http://kwonnam.pe.kr/wiki/java/memory



블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,