k8s POD 内存查看
查看pod使用的内存:
#kubectl top pod -nkube-system | grep manager manager-7c5849fbc-bhmmn 5m 155Mi manager-7c5849fbc-bsv77 5m 161Mi
POD内RSS查看:
bash-4.4# cat /sys/fs/cgroup/memory/memory.stat | grep rss rss 164495360 rss_huge 0 total_rss 164495360 total_rss_huge 0
pprof 内存定位:
go tool pprof http://0.0.0.0:9002/debug/pprof/heap