Closed Bug 759092 Opened 14 years ago Closed 14 years ago

Daily not responding (beach balls) with high/100% cpu, and memory nominal but increasing

Categories

(Thunderbird :: General, defect)

14 Branch
x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: armenzg, Unassigned)

References

Details

(Keywords: perf, regression)

I was trying to select multiple emails to delete them and once I reached one that was pretty large I got a beach ball. I opened activity monitor and the memory usage started sky rocketing. I also noticed that after a couple of minutes it becomes responsive again and the memory usage comes back to normal. This time I gave enough time to come back to normal but I normally would "force quit". I can reproduce this again and again. I can show this tomorrow to someone at the office. I will leave the emails untouched. On another note, I had similar performance issues a couple of weeks ago but they were gone last week, The build was from Friday 25th. I am using Mac OSX 10.7
> memory usage started sky rocketing could you specify numbers please? and, when the performance returns, does the memory usage also return to "normal"? xref Bug 757291 - Earlybird 14.0a2 100% CPU usage / beachballing
Severity: normal → major
Keywords: perf
Summary: Daily not responding and memory usage increasing → Daily not responding (beach balls) and memory usage increasing
Version: unspecified → Trunk
After starting daily and waiting a minute, the memory stabilizes around 160-170MB of RAM. When I get into the abnormal state I get into 100-120+ % CPU usage and the memory starts climbing and fluctuating between 250MB and 350MB (2 weeks ago I was seeing 1.5GB and growing eternally). Once it comes back to normal it goes back to ~187MB. The email that causes this to be triggered is the "Metrics: nightly report". This email is large and I believe it actually has content that hits the metrics database to draw some graphs inside the email.
For the record, I can reproduce it again without having to reboot. All I have to do is deselect and select the same emails.
No, I don't think so. The STR is different. If you notice, I don't really load the large size email to be viewed. I only select it with other emails.
In 5 minutes (it is still uploading) you should a screen recording of three minutes showing the problems I face. http://youtu.be/Oz_myry0eW8 Initially I show that loading up the individual message it is troublesome but doable. Selecting multiple emails and including the large one turns daily unresponsive. This is shown at the end of the video.
(In reply to Armen Zambrano G. [:armenzg] - Release Engineer from comment #5) > I only select it with other emails. But if you are using the default setting of mail.operate_on_msgs_in_collapsed_threads=true then you are in fact loading every message in the selection. The bug I was thinking of didn't show in that query - it's Bug 753502 - memory usage spikes while selecting multiple messages with attachments and mail.operate_on_msgs_in_collapsed_threads=true
The vast majority of the time seems to be spent in the jsmime emitter's writeBody method. I wonder if the new compartment stuff is interacting poorly with the js mime emitter. writeBody is not very complicated. I wonder if the sanebodysize stuff is getting used by the message summary code too.
Keywords: regression
Summary: Daily not responding (beach balls) and memory usage increasing → Daily not responding (beach balls) with high cpu and memory nominal but usage increasing
armenzg, do you see this with most recent daily? bienvenu, if armenzg still sees trouble, is it sufficient for armenzg to set javascript.options.mem.gc_per_compartment to false to test your theory?
(In reply to Wayne Mery (:wsmwk) from comment #9) > armenzg, do you see this with most recent daily? > > bienvenu, if armenzg still sees trouble, is it sufficient for armenzg to > set javascript.options.mem.gc_per_compartment to false to test your theory? I don't know, but it certainly sounds worth a try.
I see this every day and I have to work around it every day. I have set the flag to false and will report tomorrow.
Good results?
Hi Wayne, this still happens. I can email you the email that causes me trouble and let you reproduce it.
This still happens to me with javascript.options.mem.gc_per_compartment set to False. I selected 6 emails of ~300KB in size. No attachments. Just text.
Depends on: 589310
Blocks: 757291
(In reply to Armen Zambrano G. [:armenzg] from comment #14) > This still happens to me with javascript.options.mem.gc_per_compartment set > to False. > > I selected 6 emails of ~300KB in size. No attachments. Just text. Armen, can you try 2012-05-03 nightly build? if it works and 2012-05-03 nightly build fails then perhaps this is bug 782899 - despite javascript.options.mem.gc_per_compartment having no effect.
This sounds like the same issue I've been working on in bug 782899. As Wayne says, if the 2012-05-03 nightly (of comm-central, not comm-aurora) doesn't show the problem then we can dupe this to bug 782899.
Armen, results?? Please try latest nightly [1], or try build [2] from bug 784286 and report your results. backup your profile before testing. [1] https://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/ [2] https://ftp.mozilla.org/pub/mozilla.org/thunderbird/try-builds/ireid@mozilla.com-2d5513652000/ (In reply to Armen Zambrano G. [:armenzg] from comment #17) > Downloading > http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/2012/05/2012-05- > 03-03-16-32-comm-central/thunderbird-15.0a1.en-US.mac.dmg
Sorry about that. The latest daily does not beach ball. It blocks for a couple of seconds instead of a minute or two without beachball. I noticed that as I increased the number of messages selected the delays were incrementally larger. I also noticed that "select all" were there are large messages (300KB to 800KB) could slow me down to close to 10 seconds. In other words, the super bad performance is gone but there are other ones that I can notice but I can live with.
Armen, is comment 19 still accurate? And, do you consider this bug report to be WFM?
I can't even notice the problem anymore.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Summary: Daily not responding (beach balls) with high cpu and memory nominal but usage increasing → Daily not responding (beach balls) with high/100% cpu, and memory nominal but increasing
(In reply to Armen Zambrano G. [:armenzg] from comment #21) > I can't even notice the problem anymore. Uggh, that's good and bad - bad in that I guess we won't know what caused this because - this bug started in tb14 - Bug 589310 very much predates this. - bug 782899 is a TB15 regression
No longer depends on: 589310
Version: Trunk → 14
You need to log in before you can comment on or make changes to this bug.