Memory consumption feedbacks
Hello the XMPP team,
Following a comment from Adrien in #Make Hubl Better regarding the memory consumption, I played a bit with the firefox dev tools to understand what was going on. No conclusions but I tested few scenarios:
- Current memory snapshot after 2 days of Hubl staying opened: 4GB of memory allocated
- After reload of the tab, and multiple switchs between channels: 2.7GB of memory allocated
- After reload on the dashboard: 101MB allocated
- After reload on the dashboard and switch to other non-xmpp menus (like job-offers, directory, admins): 180MB of memory allocated
I have no expertise on converse neither have I really looked at the component itself yet but I guess there are issues with the way the memory is allocated, which is why a tested some scenarios without accessing any circles/projects/messages, where we can see the impact of the SIBStore object storage.
That probably makes Hubl unusable on computers with low memory (4/6GB).
The snapshots I took are available here, you can import them through the firefox devTools, Memory Tab, Import menu. Here is also a screenshot of the second scenario with "Dominators" view selected and labelled by "Call stack":
Can somebody look into that ? I can be available if that helps, those analysis are pretty un-readable.
We may point an issue in sib-core in the end as I know you're using it but would be best to look at that from the top first.