IMAP: Excessive memory usage on folder summary download
Hi!
According to the results of correspondence with Milan Crha, I start this issue
I'm having trouble syncing a new mailbox in Evolution. If the mailbox is very large (several tens of gigabytes), then Evolution consumes more and more RAM during synchronization during the synchronization process. After the synchronization ends, the allocated memory is not released. Also, if there is not enough RAM (4 GB), then when synchronizing a very large box, Evolution crashes, as RAM runs out. Also, if you enable the option "Synchronize remote mail locally in all folders" at the "Receiving Parameters" stage of setting up a new mail account, then the RAM consumption will increase even more
Using the heaptrack utility, I saw that the largest allocation of RAM occurs in the imapx_splice_with_progress function of the evolution-data-server project when calling the g_output_stream_write_all function. Probably, RAM is allocated there, and then it is not cleared over time.
Parameters of the system on which the testing was carried out:
- OS: Debian "Testing"
- Evolution ver: evolution 3.46.1-1
- Protocol: IMAP