TCP client connections (e.g., HTTP) hang with moderate CPU load when server is not reachable (e.g., misconfigured proxy)
Categories
(MailNews Core :: General, defect, P3)
Tracking
(Not tracked)
People
(Reporter: it, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf, Whiteboard: [necko-triaged][necko-priority-review])
Attachments
(1 file)
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Comment 4•10 years ago
|
||
Reporter | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Reporter | ||
Comment 8•10 years ago
|
||
Reporter | ||
Comment 9•10 years ago
|
||
Comment 10•9 years ago
|
||
Reporter | ||
Comment 11•9 years ago
|
||
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Reporter | ||
Comment 13•9 years ago
|
||
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 16•8 years ago
|
||
Reporter | ||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
Comment 21•8 years ago
|
||
Comment 22•8 years ago
|
||
Reporter | ||
Comment 23•8 years ago
|
||
Reporter | ||
Comment 24•8 years ago
|
||
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Reporter | ||
Comment 27•3 years ago
|
||
Bug 1650632 contains some new performance profiles, recorded with TB 91.4.0, e.g. https://share.firefox.dev/3DXO74R
Reporter | ||
Comment 28•3 years ago
|
||
It is a shame that this fundamental major bug is present since at least 7 years (likely since much longer, since the beginning of Mozilla)
and still no developer has taken care to fix it.
Reporter | ||
Comment 29•3 years ago
|
||
Since this is the experience also with many many other Mozilla bugs, part of which are 15+ years old,
I am currently considering the ultimate user-perspective bug fix: switch to a different email client.
Evolution seems to be an interesting alternative.
Comment 30•3 years ago
|
||
Hello I have tried to reproduce the issue with firefox 97.0a1(2021-12-13) on Windows 10, MacOS 10.15 and Ubuntu 20. Marking this issue as RESOLVED->WORKSFORME as there seems to be no activity on this issue and the issue is not reproducible on the latest Firefox version.
If the issue is still vali please feel free to reopen it or file another bug.
Have a nice day!
Reporter | ||
Comment 31•3 years ago
|
||
Negritas Sergiu, who are you to close others' bug reports that you obviously have no clue about?
You are wrong. The bug persists, with both the latest Thunderbird, and Firefox.
I just confirmed the bug again with latest nightly, 97.0a1.
It occurs both when trying to load pages such as http://1.2.3.4
and when manually setting the proxy to an unreachable address such as 1.2.3.4.
Comment 32•3 years ago
|
||
Sorry David for closing this issue.
But as I have mentioned I have tried to reproduce the issue after configuring a proxy as the one mentioned in the description, but in my case I haven't seen a high CPU usage other than normal on the mentioned OS's.
Sorry again for the inconvenience created.
Have a nice day!
Reporter | ||
Comment 33•3 years ago
|
||
(In reply to Negritas Sergiu from comment #32)
Sorry David for closing this issue.
Okay.
Here is a further performance profile that hopefully helps pinning down the root cause: https://share.firefox.dev/32bNese
Comment 34•3 years ago
|
||
(In reply to David von Oheimb from comment #33)
(In reply to Negritas Sergiu from comment #32)
Sorry David for closing this issue.
Okay.
Here is a further performance profile that hopefully helps pinning down the root cause: https://share.firefox.dev/32bNese
50% of the js activity is under refreshWindow chrome://cardbook/content/wdw_cardbook.js
Also significant (10% ?) GC/CC between such things as nsObserverService::NotifyObservers cycle-collector-forget-skippable and js::GCRuntime::markUntilBudgetExhausted via nsJSContext::GarbageCollectNow INTER_SLICE_GC
So maybe the CPU usage has moved.
Does your CPU load occur if cardbook has been removed?
Reporter | ||
Comment 35•3 years ago
|
||
Sorry that I did not notice your reply earlier.
Indeed, disabling the CardBook extension significantly lowered the idle CPU usage - thanks a lot for this hint!
What a crappy extension, which I had installed once but had not really used.
Yet even with all add-ons disabled, the idle CPU load averages to 3 - 5 % according to 'top', which is still too much.
And when I replace the real name/address of the IMAP server of any of my mail accounts by the IP address 1.2.3.4,
which simulates intermittent network connection or server availability,
the CPU load rises to some 30 - 35 % as long as "Connection to 1.2.3.4..." is shown, i.e., until a connection timeout occurs (after 90 seconds).
Again, this should be easy to reproduce.
Comment 36•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
(In reply to David von Oheimb from comment #35)
And when I replace the real name/address of the IMAP server of any of my mail accounts by the IP address 1.2.3.4,
which simulates intermittent network connection or server availability,
the CPU load rises to some 30 - 35 % as long as "Connection to 1.2.3.4..." is shown, i.e., until a connection timeout occurs (after 90 seconds).
David, as far as I understand, you are reproducing this with Thunderbird, right?
Are you able to do it with Firefox?
Reporter | ||
Comment 38•2 years ago
•
|
||
Sorry for my late reply, I did not notice your request for info until now.
Yes, I am able to reproduce needlessly high CPU load on hanging connections also with a current Firefox (version 112),
by setting up proxy 1.2.3.4 as stated in my OP above, which meanwhile is 8.5 years back.
With Firefox meanwhile "only" 15% of a CPU core gets wasted on my current Linux machine,
apparently due to some silly busy waiting.
With current Thunderbird the wast is even about 60% - see also bug 1830641
Reporter | ||
Comment 39•2 years ago
•
|
||
Related bug reports include also bug 683651
Comment 40•1 years ago
|
||
David - Can you get a profile and upload it? Thanks!
Reporter | ||
Comment 41•1 years ago
|
||
For the related bug report https://bugzilla.mozilla.org/show_bug.cgi?id=683651 I already spent the effort to provide profiles several times,
which were not used to fix the bug. So I'm sufficiently frustrated to spend no more effort on this.
Why don't you produce the profile yourself? And as I mentioned in Bugzilla meanwhile certainly at least 15 times,
there is an easy way to reproduce the issue, such that anyone analyzing this type of bug can produce relevant profiles him/herself.
It should be reproducible at least on Linux (e.g., Debian) and MacOS.
Comment 42•9 months ago
|
||
Moving bug to Core/Networking: Proxy.
Investigations in Bug 683651.
Comment 44•4 months ago
|
||
Assessed as a front end bug, moving to Mailnews Core:General for triage.
Description
•