werft icon indicating copy to clipboard operation
werft copied to clipboard

[bug] Go-routine leak when subscribing to jobs

Open csweichel opened this issue 5 years ago • 1 comments

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 avatar Jan 30 '20 10:01 csweichel

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

csweichel avatar Jan 31 '20 18:01 csweichel