Closed Hades32 closed 6 years ago
Thanks for the report, I'll take a look into this, it may take a while to resolve.
I'm using the file store and noticed that files are created for inbound messages but never deleted.
Looking at the code, inbound messages are deleted from the store in persistOutbound when called for the corresponding PUBACK/PUBCOMP message. However, it seems that persistOutbound isn't actually called anywhere except for PUBLISH messages.
That sounds pretty consistent with the pprof output above, as we can see there is quite some use of hashGrow
...
@alsm any ideas for a fix? If I knew how to start I might have time for a PR...
Is there something we can do to help with this issue?
There was a PR just merged that addressed a memory leak, could you see if this has had any effect on your issue?
It definitely sounds like it! I'll re-open if it doesn't fix it :+1:
After a week of very heavy usage (Several hundred clients. Each with exactly one subscription. Message rate ~1/sec/client) I see increasing memory usage.
Pprof shows this: