Thelounge: Scroll Back Memory Consumption

Created on 25 Feb 2016  路  4Comments  路  Source: thelounge/thelounge

Over the last day or two I have noticed TheLounge server consuming a large amount of memory. After inquiring on IRC it was as I suspected the scroll back is loaded into memory. I currently have 5 networks connected with probably close to a 100 fairly busy channels in total, TheLounge server is now eating more memory then my heavily used MariaDB server. Would be nice to have an option in the server config to set the amount of scroll back to keep in memory before say dumping to disk to be retrieved using "Show More".

Bug

Most helpful comment

Generally, the current structure of keeping all information in memory is pretty bad. One solution for this is to implement a sqlite backend and persist everything there, which would also have the added benefit of keeping data between restarts of the lounge server

All 4 comments

Generally, the current structure of keeping all information in memory is pretty bad. One solution for this is to implement a sqlite backend and persist everything there, which would also have the added benefit of keeping data between restarts of the lounge server

:+1: for gaining memory efficiency and persistence in one go.

@lindskogen You've done some work on this right? How far along are you?

You can use the maxHistory option to help with this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlu5 picture jlu5  路  5Comments

dgw picture dgw  路  3Comments

JasonCarswell picture JasonCarswell  路  4Comments

shinji257 picture shinji257  路  5Comments

McInkay picture McInkay  路  5Comments