I have a multi-site Sitecore instance (Sitecore 8.2), and one of the sites is very slow to load. I enabled Pipeline profiling, and saw that the httpRequestBegin
pipeline is taking a large majority of the time, more specifically the Sitecore.Pipelines.HttpRequest.EnsureServerUrl
processor. The most I could find about what that processor does was from this link, which only says:
EnsureServerUrl (Kernel): Ensures that Sitecore.Globals.ServerUrl has a value.
Does anyone have a better idea of what the EnsureServerUrl
processor does and what could cause it to become so slow? Or is there any way I can further debug that specific pipeline to see what is causing the problem?
WebUtil.GetServerUrl(args.HttpContext.Request.Url, false)
where the GetServerUrl just does some string manipulations. No idea why this would be slow...Sitecore.Globals.ServerUrl
setter) the methodSitecore.Web.WebUtil.GetHostIPAddress()
. If you have Sitecore PowerShell Extensions installed, you can try calling[System.Net.Dns]::GetHostEntry(problematicSiteHostName)
in a console on the server to see if this is delaying things. I would also check the log for warnings.