For over a year now I have been developing an "intranet" site for somebody that they use do to various daily tasks.
It is MVC 4, pre compiled views, IIS 7.5 running on Server 2012 i7 16GB RAM.
All of a sudden yesterday all the LAN machines, using Chrome or IE, page laoding take between 25-55 seconds! Even static pages. I log on the server, zoom zoom, no problem? 1013ms.
I installed Glimpse and published, then on a LAN machine and it the break down is
I deliberately loaded a page where there are about 50 partials that hit the DB 50 times. These partials are as expected. 12-15ms per render. But the last render is 25 seconds?? Then loaded a pretty static page. No partials but the same end results. (not DB then, right? It wouldn't matter because IIS does DB requests on the local machine anyway and I know local is working perfectly)
I checked in chrome networking. The 55 seconds wait, is not DNS(or atleast it says its not) Its just labeled as waiting. Then the transfer is like 200ms all the rest of the files cahced. So I clear cache, the initial 25-55seconds again, and then all the JS, CSS downloads rapidly within 500ms.
So its not a network issue, as in faulty or dodgy wires. Its perfect Gigabit full speed throughput.
I have not published anything for the week. I restarted all routers and switches, all computers and server.
I kept an eye resource manager. Not even a dent in the processor (its idle, there is nothing else running or blocking). HDD a few hundred kb in transfer. RAM is ample.
I checked the request being made to the server, who know maybe something is doing more than 1000 request a seconds DDoS the machine? Virus or something. Nope.
This problem affected ALL the machines at the same time (12/11/2014) (newer ones, older ones, notebooks). So I can only suspect an Windows Update? Chrome Update?
Anybody having the same day of hell as me? I don't know what else to check.
Spent over 10 hours trying to fix this. First time using xperf
and was really good experience but could not identify the problem.
This morning everything works fine and I did not do any changes at all.
I suspect a networking error. A switch I forgot about maybe that when haywire as it affected all PC's on the LAN at the same time and then resolved all at the same time.