Forum Discussion
SPIisLatency and SPRequestDuration Response Headers in SPO Pages
From my blog post (https://sharepointinterface.com/2017/07/07/the-five-minute-page-performance-troubleshooting-guide-for-sharepoint-online/):
UPDATE (3/20/2018): As most of you who have been following-along in your own tenants know, this issue wasn't actually truly resolved last September. For a while, in some cases, it looked like the SPIisLatency and SPRequestDuration headers came back. But the victory was fleeting, and since that time I've continued to get comments from people saying "but I don't see them!" And while I had the headers for a while in my tenant, I haven't seen them in any predictable fashion.
The good news is that after much hounding and making myself a royal pain-in-the-tuckus to Bill Baer and others at Microsoft, it looks like we FINALLY have the right engineering and dev teams engaged to look at this. We got traction on it this week, with multiple repro scenarios and Fiddler traces being passed around ... so I'm truly hopeful we'll see something before long. Stay tuned!
- Yorick KuijsMar 26, 2018
Microsoft
Do you know that the IISLatency and RequestDuration values can now be found in the page content? Just search for g_iisLatency and g_Duration.
- Apr 02, 2019
On modern pages, yes, Yorick Kuijs . I'm moving slowly, but I finally put together a post on how to get the metrics you mention: https://sharepointinterface.com/2019/03/26/obtaining-performance-metrics-for-sharepoint-online-modern-pages/
- Tom CastigliaJun 08, 2018Iron Contributor
Hello Yorick Kuijs -
I noticed that the variables for g_iisLatency and g_Duration are in the page source for certain types of pages but not all. Seems to me that all pages in classic sites have these variables. In Modern sites, document library pages, also have the same variables.
However, on the home page for a Modern Team site, I could not find these variables (at least not with the spellings below). But I did discover that these values are provided within a json string in the page source in modern site pages. Simply search for "perf" or "spRequestDuration" and you'll find something like this:
"perf" : {"IisLatency":"2","spRequestDuration":"238","QueryCount":"5","QueryDuration":"29","CPUDuration":"189","ClaimsAuthenticationTime":"204935","ClaimsAuthenticationTimeType":"CacheHitVelocity","Network-WindowScaleOption":"8","Network-PacketRetransmitCount":"0","Network-SmoothedRoundTripTime":"31"}As you can see this contains the details Sean McDonough was describing, plus some additional metrics.
I hope at some point this data shall be provided in a consistent manner across all types of pages. Ideally, it would great to have it in the headers instead of page source.
- Jul 12, 2018
I wanted to take a moment to share an important link with everyone!
Scott Stewart and his team at Microsoft have been working to put together a Page Diagnostics Tool for SharePoint, and it is now available for the Chrome browser. I know it was Scott's intention to have it ready for Edge, as well, so keep your eyes open if you're an Edge user.
The link (above) takes you to an article on the tool, how to use it, and how to get it. The tool directly incorporates the headers we've been talking about here, as well as a bunch of other analyses and tips. You'll want to get it ASAP!
Thank you, Scott and team!
- wbaerMar 20, 2018
Microsoft
I'll take that as a thank you ;-)
- Mar 21, 2018
Please do ... and to back it up, I'll get you a beverage of your choice at SPCNA :-)