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"
posted @ 2025-05-13 09:34  rincloud  阅读(44)  评论(0)    收藏  举报