-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lighthouse in Chrome limits maximum parallel HTTP2 connections #8626
Comments
Afaik this also happens running lighthouse in Chrome on Ubuntu. |
Thanks for filing @thasmo! This is really interesting... I can reproduce the behavior you're talking about (though oddly not 100% of the time, more like 80%). I can also intermittently reproduce this by recording a page load in the "Performance" tab of DevTools after having run Lighthouse (but not in the network panel and refreshing for some reason). I mildly suspect that this might be a visualization/reporting only bug without affecting the actual timing of requests because the trace categories necessary to visualize the network requests in trace viewer are slightly different between LH and DevTools but that wouldn't fully explain what we're seeing so I'm not sure. Root cause will be tricky to nail down for a Chrome scheduling and/or trace visualization issue like this, but thanks very much for bringing to our attention! As for what this means in practice... If you are using Lighthouse with the default settings (simulated Slow 4G/Fast 3G throttling), then this will not end up significantly impact your performance numbers. The network requests are still handled using H2, and we disregard the amount of time spent queuing on our observed load when we simulate under the alternate conditions so the requests will not be subject to the same 6 parallel request limit you observe there. If you're using Lighthouse with DevTools applied throttling, then I'm sorry to say it actually fails on H2 more severely than just the 6 parallel requests issue (it's request-based approach does not throttle subsequent requests). If you're using Lighthouse with OS/packet-level throttling then you're probably being bitten by this in the metrics. |
FYI PSI is using http/1.1 -> #7326 |
Thanks @juliquiron but this issue is not related to PSI. |
I can't reproduce a difference in download behavior after running Lighthouse. I tried something else out.. in a fresh chrome profile i used I see a few things. I see 6 sockets opened to h1 and just 2 opened to h2. (I haven't run Lighthouse at all, so this is conceivably default behavior). I'm also assuming you weren't using applied throttling, because it's just too disruptive for this sort of analysis. Given that, though.. I imagine it was a weird situation of visualization. Will close for now. If anyone can provide a URL where I can test this, I'd happily reopen. |
This baffled me for quite a while and I think I was able to pin it down to lighthouse being the problem. Also, I tested this multiple times and it seems to be reproducable.
Thanks for the awesome work on lighthouse!
Steps
What is the current behavior?
What is the expected behavior?
Environment Information
The text was updated successfully, but these errors were encountered: