Closed Bug 1124561 Opened 9 years ago Closed 9 years ago

HTTP2 causes high CPU and stalled navigation

Categories

(Core :: Networking: HTTP, defect)

x86
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1124717

People

(Reporter: lh.bennett, Unassigned)

Details

(Keywords: regression, Whiteboard: [spdy])

Whatever happened over the last few days has caused some sites to trigger a network stall in which the browser will never be able to resolve any network activity. On top of that, the browser will generate high CPU usage. 

AMD CodeXL reports that these functions are involved:

Function, Samples, % of Hotspot Samples, Module
nsBufferedInputStream::ReadSegments(enum tag_nsresult (*)(class nsIInputStream *,void *,char const *,unsigned int,unsigned int,unsigned int *),void *,unsigned int,unsigned int *), 10888, 32.1892, xul.dll
mozilla::net::Http2Stream::OnReadSegment(char const *,unsigned int,unsigned int *), 7062, 20.878, xul.dll
mozilla::net::nsHttpTransaction::ReadRequestSegment(class nsIInputStream *,void *,char const *,unsigned int,unsigned int,unsigned int *), 6907, 20.4198, xul.dll
mozilla::TimeStampValue::CheckQPC(class mozilla::TimeStampValue const &), 3565, 10.5395, xul.dll
mozilla::net::Http2Session::TryToActivate(class mozilla::net::Http2Stream *), 2644, 7.8167, xul.dll

Turning off network.http.spdy.enabled.http2 in about:config fixed the issue.
Omega - what channel are you running?
Whiteboard: [spdy]
(In reply to Patrick McManus [:mcmanus] from comment #1)
> Omega - what channel are you running?

This is on Nightly.
It happened again with Http2 off. I think this is related to SPDY in general.

Function, Samples, % of Hotspot Samples, Module
nsBufferedInputStream::ReadSegments(enum tag_nsresult (*)(class nsIInputStream *,void *,char const *,unsigned int,unsigned int,unsigned int *),void *,unsigned int,unsigned int *), 6783, 33.1947, xul.dll
mozilla::net::SpdyStream31::OnReadSegment(char const *,unsigned int,unsigned int *), 4099, 20.0597, xul.dll
mozilla::net::nsHttpTransaction::ReadRequestSegment(class nsIInputStream *,void *,char const *,unsigned int,unsigned int,unsigned int *), 2853, 13.962, xul.dll
mozilla::TimeStamp::IsNull(void), 1960, 9.59186, xul.dll
mozilla::TimeStampValue::CheckQPC(class mozilla::TimeStampValue const &), 1588, 7.77136, xul.dll
I know this may be difficult to answer, but do you think you were uploading anything before this happened?
(In reply to Patrick McManus [:mcmanus] from comment #4)
> I know this may be difficult to answer, but do you think you were uploading
> anything before this happened?

Not to my knowledge. I had Google Play Music playing in another tab when it happened. Once I visited androidpolice.com navigating to another site gave me an endless load that didn't resolve.

After I turned off SPDY, I've had no issues since.
I ran into the same issue (can't navigate, high CPU usage) with 32-bit Nightly 38 on Win7.
Stack: http://pastebin.mozilla.org/8365924
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.