본문 바로가기
  • 오늘도 한걸음. 수고많았어요.^^
  • 조금씩 꾸준히 오래 가자.ㅎ
IT기술/개발툴

jattach, java heap dump 뜨기

by 미노드 2023. 5. 26.

https://github.com/jattach/jattach

 

GitHub - jattach/jattach: JVM Dynamic Attach utility

JVM Dynamic Attach utility. Contribute to jattach/jattach development by creating an account on GitHub.

github.com

해당 사이트에서 jattach 파일로 실행중인 process의 pid를 이용해

heap dump를 딸 수 있습니다.

덤프를 따서 메모리를 분석해 얼마나 메모리를 잡아먹는지 파악하고 성능 개선이나 인프라 용량 잡을때 사용됩니다.

메모리 누수를 잡을때도 사용할 수 있습니다.