go tool pprof 127.0.0.1:6000/debug/pprof/heap Fetching profile over HTTP from http://127.0.0.1:6000/debug/pprof/heap Saved profile in /home/adr/pprof/pprof.kcp.alloc_objects.alloc_space.inuse_objects.inuse_space.006.pb.gz File: kcp Type: inuse_space Time: Oct 5, 2023 at 1:50pm (CEST) Entering interactive mode (type "help" for commands, "o" for options) (pprof) web (pprof) top30 Showing nodes accounting for 765.23MB, 87.94% of 870.15MB total Dropped 718 nodes (cum <= 4.35MB) Showing top 30 nodes out of 164 flat flat% sum% cum cum% 646.50MB 74.30% 74.30% 646.50MB 74.30% k8s.io/utils/buffer.NewRingGrowing (inline) 32.01MB 3.68% 77.98% 32.01MB 3.68% runtime.malg 23.04MB 2.65% 80.62% 23.04MB 2.65% go.etcd.io/etcd/api/v3/etcdserverpb.(*InternalRaftRequest).Marshal 16MB 1.84% 82.46% 662.50MB 76.14% github.com/kcp-dev/apimachinery/v2/third_party/informers.newProcessListener 6.38MB 0.73% 83.20% 6.38MB 0.73% google.golang.org/grpc/internal/transport.newBufWriter 5.29MB 0.61% 83.80% 6.36MB 0.73% compress/flate.NewWriter 5MB 0.57% 84.38% 336.44MB 38.66% k8s.io/apiserver/pkg/admission/configuration.NewValidatingWebhookConfigurationManagerForInformer 4.50MB 0.52% 84.90% 4.50MB 0.52% runtime.allocm 4.50MB 0.52% 85.41% 4.50MB 0.52% k8s.io/apimachinery/pkg/runtime.DeepCopyJSONValue 4.50MB 0.52% 85.93% 664.66MB 76.38% github.com/kcp-dev/apimachinery/v2/third_party/informers.(*scopedSharedIndexInformer).AddEventHandlerWithResyncPeriod 4MB 0.46% 86.39% 6MB 0.69% github.com/kcp-dev/apimachinery/v2/third_party/informers.(*processorListener).run 4MB 0.46% 86.85% 335.69MB 38.58% k8s.io/apiserver/pkg/admission/configuration.NewMutatingWebhookConfigurationManagerForInformer 3MB 0.35% 87.20% 5.50MB 0.63% k8s.io/kube-openapi/pkg/util/proto.(*Definitions).parseKind 2.50MB 0.29% 87.48% 11.51MB 1.32% k8s.io/kubernetes/pkg/generated/openapi.GetOpenAPIDefinitions 2.50MB 0.29% 87.77% 4.50MB 0.52% sigs.k8s.io/json/internal/golang/encoding/json.(*decodeState).objectInterface 1MB 0.11% 87.88% 5MB 0.57% k8s.io/apimachinery/pkg/runtime.structToUnstructured 0.50MB 0.057% 87.94% 5.50MB 0.63% k8s.io/apimachinery/pkg/runtime.(*unstructuredConverter).ToUnstructured 0 0% 87.94% 6.36MB 0.73% bufio.(*Writer).Flush 0 0% 87.94% 6.36MB 0.73% compress/gzip.(*Writer).Write 0 0% 87.94% 23.54MB 2.70% github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 0 0% 87.94% 23.54MB 2.70% github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1 0 0% 87.94% 23.54MB 2.70% github.com/grpc-ecosystem/go-grpc-prometheus.(*ServerMetrics).UnaryServerInterceptor.func1 0 0% 87.94% 663.13MB 76.21% github.com/kcp-dev/apimachinery/v2/third_party/informers.(*scopedSharedIndexInformer).AddEventHandler 0 0% 87.94% 663.20MB 76.22% github.com/kcp-dev/apimachinery/v2/third_party/informers.(*sharedIndexInformer).AddEventHandlerWithResyncPeriod 0 0% 87.94% 336.69MB 38.69% github.com/kcp-dev/kcp/pkg/admission/mutatingwebhook.(*Plugin).Admit 0 0% 87.94% 336.69MB 38.69% github.com/kcp-dev/kcp/pkg/admission/mutatingwebhook.(*Plugin).getHookSource 0 0% 87.94% 336.94MB 38.72% github.com/kcp-dev/kcp/pkg/admission/validatingwebhook.(*Plugin).Validate 0 0% 87.94% 336.94MB 38.72% github.com/kcp-dev/kcp/pkg/admission/validatingwebhook.(*Plugin).getHookSource 0 0% 87.94% 20.41MB 2.35% github.com/kcp-dev/kcp/pkg/authorization.WithDeepSubjectAccessReview.func1 0 0% 87.94% 20.91MB 2.40% github.com/kcp-dev/kcp/pkg/authorization.WithSubjectAccessReviewAuditAnnotations.func1