반응형
쓰레드 개수 확인 숫자는 PId
ps -p 2311 -T | wc -l
쓰레드 덤프 뜨기 숫자는 PId
jstack -l 7624 > 2016-01-15-14.09.threaddump
힙덤프 뜨기 숫자는 PId
jmap -dump:format=b,file=heapdump.log.2015-01-15 12353
힙덤프 뜬후 프로그램 통해서 확인
Java Memory Analyzer(MAT)
- 힙 덤프 파일의 크기가 너무 크기 때문에
MemoryAnalyzer.ini
파일을 열어-Xmx2048m
등으로 메모리 용량을 늘려준다.
mac os ini 파일 위치는 아래
Note that on OS X, to increase the memory allocated to MAT, you need to right-click Memory Analyzer.app and show the package contents. The MemoryAnalyzer.ini file is under /Contents/MacOS/.
반응형
'개발 > 리눅스' 카테고리의 다른 글
리눅스 명령어로 단어별 카운트하여 내림차순으로 보여주기 (0) | 2017.07.26 |
---|---|
리눅스 중복문자열 세기 (0) | 2017.06.27 |
[리눅스] 로그 파일 내용 지우기 (0) | 2016.01.21 |
리눅스 디스크 용량 체크 및 사이즈 큰 파일 폴더 위치 찾기 (0) | 2015.12.11 |