I created the Ruby XMPP Framework called babylon . Then I created several applications, and although they work quite smoothly, it seems that they are slowly eating up my computer memory.
I suspected leaks, so firstly, I added this at some point in my code:
puts `ps -o rss= -p
As expected, the output continued to grow ... slowly but surely.
I tried to find leaks using Dike, for example here .
Unfortunately, Dyke could not detect the leak. Even after it worked for quite some time, it still returns the same objects.
So, how can I be sure that my infrastructure is leaking, and not just take some RAM to a certain maximum point, and then start releasing it?
And then, how can I track leaks and fix them?
Thank you for your help!
source share