본문 바로가기
개발/리눅스

[리눅스] 쓰레드 개수 확인 덤프 뜨기, 힙덤프 뜨기

by 유노~ 2016. 1. 15.
반응형

쓰레드 개수 확인  숫자는 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)

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/.



반응형