containerd pprof使用
cat /etc/containerd/config.toml 增加 address = "/run/containerd/debug.sock"
disabled_plugins = [] imports = [] oom_score = 0 plugin_dir = "" required_plugins = [] root = "/var/lib/containerd" state = "/run/containerd" temp = "" version = 2 [cgroup] path = "" [debug] address = "/run/containerd/debug.sock" format = "" gid = 0 level = "info" uid = 0
ctr pprof profile > profile.out
go tool pprof -http=:8080 profile.out 打开web页面即可
address = "/run/containerd/debug.sock"

浙公网安备 33010602011771号