Memory leak on IMAP accounts with no quota
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: nathanb, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
(Keywords: steps-wanted)
Attachments
(7 files)
Reporter | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
•
|
||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Reporter | ||
Comment 7•11 years ago
|
||
str |
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Updated•8 years ago
|
Comment 13•8 years ago
|
||
Comment 14•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 15•6 years ago
|
||
I had asked a year ago if addons are installed, but no response. And Nathan's account is no longer active.
Comment 16•5 years ago
|
||
Gene, have you encountered anything that would explain comment 5?
I'm not finding any previously reported bugs in this area. https://mzl.la/2yjbMAv I also can't imagine this would have been linux only.
Comment 17•5 years ago
|
||
I've been looking at quota stuff a lot recently. I don't see how it would immediately affect memory usage or leakage in tb. It's mostly just passive information that is returned by the server for reporting purposes (the folder properties quota tab). Tb doesn't adjust any memory allocation or structure sizes based on this information.
Comment 18•5 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #13)
Network wise, either scenario will do.
Best if you can test version 52.
Hi Wayne,
Is this IMAP memory leak test still required?
If Yes would the protocol below fit what you expect for testing and results?
- Install Thunderbird 52 (32bits) on Windows
- Setup my IMAP(Cyrus)/SMTP mailbox (without quota)
- Keep default preference settings
- Let it load folders/email as per default settings
- Let it seat for two days
- Take a memory report
- Exit Thunderbird
- Set a quota on my cyrus user mailbox
- Start Thunderbird (with existing profile)
- Let it sync and seat opened for two days
- Take a memory report again
- File those two reports in this bug
Does that sound like what you may need to identify further the issue?
If I missed something, please clarify what else may need to be added to the protocol
Hope that help.
Regards,
Comment 19•5 years ago
|
||
(In reply to Richard Leger from comment #18)
(In reply to Wayne Mery (:wsmwk) from comment #13)
Network wise, either scenario will do.
Best if you can test version 52.Hi Wayne,
Is this IMAP memory leak test still required?
If Yes would the protocol below fit what you expect for testing and results?
- Install Thunderbird 52 (32bits) on Windows
Probably better to use the latest release, 68.x.
- Setup my IMAP(Cyrus)/SMTP mailbox (without quota)
- Keep default preference settings
- Let it load folders/email as per default settings
Should record a memory report here.
- Let it seat for two days
- Take a memory report
Running without quota, reporter says you should see an increase in memory use (the leak).
- Exit Thunderbird
- Set a quota on my cyrus user mailbox
- Start Thunderbird (with existing profile)
Reporter says you will still see leaking unless you also delete and re-create the account here.
- Let it sync and seat opened for two days
- Take a memory report again
Reporter says you should see no leak at this point with fresh account.
- File those two reports in this bug
Does that sound like what you may need to identify further the issue?
If I missed something, please clarify what else may need to be added to the protocolHope that help.
Regards,
As I wrote in comment 17, I have my doubts that quota is what is causing this. But who knows...
Hopefully Wayne agrees with my comments. Thanks for looking into this.
Comment 20•5 years ago
|
||
(In reply to gene smith from comment #19)
(In reply to Richard Leger from comment #18)
(In reply to Wayne Mery (:wsmwk) from comment #13)
- Install Thunderbird 52 (32bits) on Windows
Probably better to use the latest release, 68.x.
- Setup my IMAP(Cyrus)/SMTP mailbox (without quota)
- Keep default preference settings
- Let it load folders/email as per default settings
Should record a memory report here.
Report 01
See attached the first report recording memory usage at startup, immediately after successful setup of the IMAP (Cyrus)/SMTP account while loading folders...
Client Environment
Windows 7 Pro SP1 (64bits)
HP ProDesk 405 G1 MT
4GB RAM - 300GB+ HDD
Server Environment
name : Cyrus IMAPD
version : 2.5.10-Debian-2.5.10-3ubuntu1 be9a1799 2016-10-18
vendor : Project Cyrus
support-url: http://www.cyrusimap.org
os : Linux
os-version : 4.15.0-101-generic
environment: Built w/Cyrus SASL 2.1.27
Running w/Cyrus SASL 2.1.27
Built w/Berkeley DB 5.3.28: (September 9, 2013)
Running w/Berkeley DB 5.3.28: (September 9, 2013)
Built w/OpenSSL 1.1.0g 2 Nov 2017
Running w/OpenSSL 1.1.1 11 Sep 2018
Built w/zlib 1.2.11
Running w/zlib 1.2.11
CMU Sieve 2.4
TCP Wrappers
NET-SNMP
mmap = shared
lock = fcntl
nonblock = fcntl
idle = idled
Comment 21•5 years ago
|
||
(In reply to gene smith from comment #19)
(In reply to Richard Leger from comment #18)
(In reply to Wayne Mery (:wsmwk) from comment #13)
- Install Thunderbird 52 (32bits) on Windows
Probably better to use the latest release, 68.x.- Let it seat for two days
- Take a memory report
Running without quota, reporter says you should see an increase in memory use (the leak).
Report 02
Find attached second report of memory usage capture after few days of Thunderbird running non-stop with the same IMAP/SMTP mailbox setup and environment as per previous report/comment...
FYI, mailbox is about ~15GB in content size :-)
Comment 22•5 years ago
•
|
||
Lots of data here and not sure what it all means. But when I compare the two .json files in kdiff3 it does look like most of the "amount" items have increased when running without quota in the server.
I guess you are doing the two reports again with a fresh profile/account and with quota in the server? The reporter says you should see no big change in the memory usage ("amount") between the two reports with quota set.
Just wondering which tool you are using to produce the reports? Is it only showing TB memory usage?
Edit: Never mind. I see it is the about:memory built-in tool.
Thanks.
Comment 23•5 years ago
•
|
||
(In reply to gene smith from comment #22)
Just wondering which tool you are using to produce the reports?
I use the built-in Memory Use tool available in Thunderbird Menu > Help > Troubleshooting Information > about:memory
It allows to generate and save (anonynimised or not) Memory Use report as thoses published here.
Lots of data here and not sure what it all means.
That is the data generated by the tool used. So you may want to refer to the tool itself to understand the report.
But when I compare the two .json files in kdiff3 it does look like most of the "amount" items have increased when running without quota in the server.
The same tools also allow to load saved reports to view it on screen as well as compare two saved reports...
Might be a better way to read/compare reports than use third-party tools such as kdiff3... in this case...
I guess you are doing the two reports again with a fresh profile/account and with quota in the server?
Yes. The second phase of test is currently running. Results will be published on Friday (in two days).
Comment 24•5 years ago
•
|
||
(In reply to gene smith from comment #19)
(In reply to Richard Leger from comment #18)
(In reply to Wayne Mery (:wsmwk) from comment #13)
- Exit Thunderbird
- Set a quota on my cyrus user mailbox
- Start Thunderbird (with existing profile)
Reporter says you will still see leaking unless you also delete and re-create the account here.
Report 03
See attached the third report recording memory usage at startup, immediately after successful setup of the IMAP (Cyrus)/SMTP account set with quota while loading folders...
Comment 25•5 years ago
|
||
(In reply to gene smith from comment #19)
(In reply to Richard Leger from comment #18)
(In reply to Wayne Mery (:wsmwk) from comment #13)
- Let it sync and seat opened for two days
- Take a memory report again
Reporter says you should see no leak at this point with fresh account.
Report 04
Find attached fourth report of memory usage capture after few days of Thunderbird running non-stop with the same IMAP/SMTP mailbox setup set with quota and environment as per previous report/comment...
Comment 26•5 years ago
|
||
Tried to use the Load and Diff button but the results don't look like a diff. So just used the Load button and looked at "explicit" for both sets. In both cases the report after 3 days reports some errors in the explicit category so not sure how accurate it is. Anyhow when I look at the explicit deltas it looks like without quota uses 113M more after 3 days and with quota uses 135M more after 3 days. So maybe worse with quota which is opposite of the reporter's observation. Not sure if statistically significant or if I'm even looking that the right thing in the reports.
Comment 27•5 years ago
|
||
Thanks gene for looking at this. I agree with your approach.
So we conclude there is nothing showing up that can be actioned?
Comment hidden (offtopic) |
Comment 29•5 years ago
|
||
I seems to be encountering this issue on my production Windows 10 Pro (64bits) machine currently running TB 78.0b4 (64-bit).
Find attached the memory report when I noticed Thunderbird starting to slow down after few days of use, and not responding intermittently without much reason to :-)
Sometime it is due to this Bug 1642292 but sometime not as it also happens when calendar is not syncing... at the moment the memory foot print of TB has increased to ~1.5GB!
Comment 30•5 years ago
|
||
I really don't know how to analyze the memory report you attached. When you say "a few days of use" does this include any sleep or hibernate events occurring during this time? I have noticed recently, but only with a personal trunk build, that TB goes full tilt with the MainThread running at near 100% cpu and causing my laptop fan to go full speed. This is usually after several hibernates and/or sleeps and seemed to occur only in the evening. But haven't noticed it in the last few days. Probably not related to what you report.
Comment 31•5 years ago
|
||
The memory report about:memory feature available in TB.
Yes I put computer to sleep in evening no hybernate though. Don't encounter issue with any other app such as Firefox (many tabs open) or Chrome (many tabs opened) only happens in Thunderbird.
Comment 32•5 years ago
|
||
Even if some leakage is detected over a period of days, I don't see this make progress because we don't have something that can be replicated. It would be more useful to do a shorter time frame with a controlled, specific list of steps, perhaps repeated multiple times. (such as moving the same 1000 messages). I think you'd need to "warm up" thunderbird first, for example with some actions which open the folders being used.
Updated•2 years ago
|
Comment 33•5 months ago
|
||
We have no other significant leak bug reports with activity in the last 3 years citing imap involvement https://mzl.la/3TBXyRY.
And the last comments suggest there may be no leakage related to imap quota.
So closing this bug.
Description
•