getElementsByName / tmp-doc

0 stars 0 forks source link

jvm dump #20

Open getElementsByName opened 3 years ago

getElementsByName commented 3 years ago

tools

jmap in alphine

apk add --no-cache jattach --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/

jattach 1 dumpheap /tmp/dump.file

remote to local

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 

visualize dump

getElementsByName commented 3 years ago

alphine ps

apk add procps

ps with lwp

ps -mo pid,lwp,stime,time,pcpu -C java