csweichel / werft

Just Kubernetes Native CI
https://werft.dev
MIT License
186 stars 39 forks source link

[bug] Go-routine leak when subscribing to jobs #47

Open csweichel opened 4 years ago

csweichel commented 4 years ago

Werft seems to leak go-routines and memory over time. After running werft for about 72h and running about 200 jobs in that time, we have 9883 go routines. Memory consumption has rissen to about 136 megabytes.

csweichel commented 4 years ago

This issue seems be related to the Subscribe handler not cleaning up properly, i.e. it doesn't react to context cancelation. See this pprof output: image image