memory leak, how to help finding it

Author: fatpatCreated Jan 18, 2023Updated Jan 23, 2023

Hello,

we are running beanstalkd 1.12 in production on many servers and we encounter some kind of memory leak.

We have instances that stack events for a while before those event to be consumed. Memory usage grows but never got release even if events are gone.

here is the evolution of the number of job in beanstalkd (no matter the status) image

and here is the memory consumption of the very same instance during the same time image

before restarting beanstalkd, I made a 15GiB memory dump of beanstalkd.

I have other instances consuming a lot of memory without events that I can use to debug.

How can I help to find and fix this bug ?