250x250
Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- MySQL
- Eclipse
- IntelliJ
- myBatis
- maven
- error
- 설정
- git
- Thymeleaf
- STS
- Source
- Exception
- Docker
- Spring Boot
- JavaScript
- Tomcat
- ubuntu
- oracle
- Core Java
- MSSQL
- 오픈소스
- spring
- JDBC
- PostgreSQL
- Open Source
- jpa
- AJAX
- SpringBoot
- Python
- 문서
Archives
- Today
- Total
헤르메스 LIFE
[Tool] Memory Analyzer (MAT) 본문
728x90
링크 : http://www.eclipse.org/mat/
OutOfMemoryError의 경우에 heapdump를 JVM생성하는 option :
-XX:+HeapDumpOnOutOfMemoryError
Memory Analyzer 실행
package de.vogella.mat.first;
import java.util.ArrayList;
import java.util.List;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
List list = new ArrayList();
while (1<2){
list.add("OutOfMemoryError soon");
}
}
}
OutOfMemory를 내도록 실행 ( MAT가 큰 용량은 처리하지 못하는 듯 합니다. )
VM arguments : -Xms64m -Xmx128m -XX:+HeapDumpOnOutOfMemoryError
MAT 의 실행
MAT 사이트(http://www.eclipse.org/mat/downloads.php)에서 다운받은 MemoryAnalyzer-1.1.1.20110824-win32.win32.x86_64.zip 파일의 압축을 풀면 mat 폴더가 생성됩니다.
압축 해제
MemoryAnalyzer.exe 실행
Dump 파일 Open
Leak Suspect Report
실행결과
728x90
'장난감들' 카테고리의 다른 글
| [Open Source] SmartEditor Basic (0) | 2012.06.01 |
|---|---|
| [UML] Star UML 사용법 (0) | 2012.05.30 |
| [유틸] 소스코드 라인 카운트 (0) | 2012.05.22 |
| [Plugin] Eclipse Plugin Amateras UML 설치하기 (0) | 2012.05.18 |
| [Plugin] eUML2 Studio 설치 (0) | 2012.05.16 |