<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 運行時 ### docker ```shell $ curl --unix-socket /var/run/docker.sock -X GET http://localhost/debug/pprof/profile > docker.profile $ curl --unix-socket /var/run/docker.sock -X GET http://localhost/debug/pprof/heap > docker.heap $ curl --unix-socket /var/run/docker.sock -X GET http://localhost/debug/pprof/goroutine > docker.goroutine ``` ### containerd >[info] 確認主機上 `/run/containerd/debug.sock` 是否有debug的socket文件。如沒有的話,請將 [debug] 下的 address 參數配置成上面的文件。**重啟containerd服務,重啟containerd服務不會導致跑在pod里面的業務重啟** ```shell $ grep -A1 "\[debug\]" /app/containerd/config/config.toml [debug] address = "/run/containerd/debug.sock" ctr pprof heap > containerd.heap ctr pprof profile > containerd.profile ctr pprof goroutines > containerd.goroutines ``` ## kube-apiserver ```shell kubectl proxy --address='0.0.0.0' --accept-hosts='^*$' curl -o kube-apiserver.heap http://localhost:8001/debug/pprof/heap curl -o kube-apiserver.profile http://localhost:8001/debug/pprof/profile curl -o kube-apiserver.goroutine http://localhost:8001/debug/pprof/goroutine ``` ## kube-controller-manager ```shell ``` ## kube-scheudler ```shell ``` ## kubelet ```shell kubectl proxy --address='0.0.0.0' --accept-hosts='^*$' curl http://192.168.32.127:8001/api/v1/nodes/[k8s節點名稱]/proxy/debug/pprof/profile -o kubelet.heap curl http://192.168.32.127:8001/api/v1/nodes/[k8s節點名稱]/proxy/debug/pprof/profile -o kubelet.profile curl http://192.168.32.127:8001/api/v1/nodes/[k8s節點名稱]/proxy/debug/pprof/goroutine -o kubelet.goroutine ``` ## kube-proxy > 需要在配置文件(kubectl -n kube-system get cm kube-proxy)中將 `enableProfiling` 設置為 `true` 的值。 ```shell curl localhost:10249/debug/pprof/heap -o proxy.heap curl localhost:10249/debug/pprof/profile -o proxy.profile curl localhost:10249/debug/pprof/goroutine -o proxy.goroutine ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看