Created by: leolannenmaki
I ran into similar issues as described here https://github.com/OptimalBits/bull/issues/144 and here https://github.com/OptimalBits/bull/issues/243. The issue descriptions and the comment here https://github.com/OptimalBits/bull/issues/243#issuecomment-182936122 helped me to maybe fix the at least some of the leaks. I used node-inspector and snapshotting to debug this.
To test this I had a node program running bull, but doing absolutely nothing. Without these changes the memory consumption would steadily just grow. Now it seems more or less stable.
I also tried to avoid rebinding functions and creating closures in processJobs
etc.