weaveworks / weave-gitops-enterprise

This repo provides the enterprise level features for the weave-gitops product, including CAPI cluster creation and team workspaces.
https://docs.gitops.weave.works/
Apache License 2.0
160 stars 29 forks source link

investigate and fix potential goroutines leak within explorer #3338

Open enekofb opened 1 year ago

enekofb commented 1 year ago

Investigating memory usage increase for wge https://github.com/weaveworks/weave-gitops-enterprise/issues/3189

We have found that when enabled explorer we have a likely leak of goroutines as we see an ever-increasing number of goroutines

https://github.com/weaveworks/weave-gitops-enterprise/issues/3189#issuecomment-1711436718

Screenshot 2023-09-11 at 16 13 17

However when explorer is disabled the number of goroutines remains stable

https://github.com/weaveworks/weave-gitops-enterprise/issues/3189#issuecomment-1713277560

Screenshot 2023-09-11 at 16 16 00

AC

jpellizzari commented 1 year ago

Let's try turning off the ObjectCleaner and see what this graph looks llike