1)進入指定的容器
docker exec -it demo /bin/bash
?
2)下載curl
root@89a67e345354:/# apt install curl -y
?
3)下載arthas
root@89a67e345354:/# curl -O https://arthas.aliyun.com/arthas-boot.jar
4)運行
root@89a67e345354:/# java -jar arthas-boot.jar
?
5)監控
[arthas@1]$ profiler start -e alloc
[arthas@1]$ profiler stop --format html
root@89a67e345354:/# exit
?