Hi,
We are using ReactiveMongo 0.12.1 with Mongo 3.0.12 with CR-auth, and we have seen an issue where some of our nodes have a slow memory leak. The high memory usage has happened on about half of our nodes, and on the affected nodes it has grown slowly over the last 3 weeks.
We took a heap dump and it looks like the problem is that the EvictingQueue named "history" within the MongoDBSystem has grown to have 1 million items within it. Having inspected the queue, I can see items with timestamps from 2 weeks ago. I have attached some screenshots from VisualVM showing the EvictingQueue size.
When adding a history item, the logic says this.size() == this.maxSize when checking if an item needs to be removed, so if the size of the collection is 26 or above, it will seemingly leak slowly forever which matches what we have seen. Is it possible that multiple threads have added to the EvictingQueue
causing the size of the underlying collection to surpass 25?