Open getElementsByName opened 3 years ago
apk add --no-cache jattach --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ jattach 1 dumpheap /tmp/dump.file
kubectl cp /tmp/foo <some-pod>:/tmp/bar -c <specific-container> kubectl cp -c cp-kafka-connect-server /tmp/dump.file kafka-connect-667469fc95-w55lj:/tmp/dump.file
https://visualvm.github.io/download.html
visualvm으로 프로세스 상태, thread/heap dump 수행
jvm 실행시 jvm.remote 관련 옵션 추가
remote 커넥션 설정
분석 예
apk add procps
ps -mo pid,lwp,stime,time,pcpu -C java
tools
jmap in alphine
remote to local
visualize dump
https://visualvm.github.io/download.html
remote로 visualvm 만으로 접근하여 분석
visualvm으로 프로세스 상태, thread/heap dump 수행
jvm 실행시 jvm.remote 관련 옵션 추가![Screenshot from 2020-10-21 15-59-39](https://user-images.githubusercontent.com/21363169/96684696-f75d6200-13b6-11eb-96b1-93669fd6f5fa.png)
remote 커넥션 설정![Screenshot from 2020-10-21 15-59-46](https://user-images.githubusercontent.com/21363169/96684693-f5939e80-13b6-11eb-99ee-5bf86eaf8154.png)
분석 예
![Screenshot from 2020-10-21 16-01-24](https://user-images.githubusercontent.com/21363169/96684688-f3314480-13b6-11eb-9988-7e88086eff0f.png)