A
A
Anton Voronin2018-04-02 16:38:50
IIS
Anton Voronin, 2018-04-02 16:38:50

Very long Time To First Byte on an ASP .NET MVC 5 site. where to look for the cause?

Actually, the problem is the following. I have an ASP .NET MVC5 website. On the local computer, excellent speed, pages load quickly. However, after publishing on hosting, Time To First Byte is stable for at least 30 seconds. And even on the pages of the Hello World level. Static content is given at a normal speed. In this connection, I suspect that View compilation takes a very long time, but I can not understand why and how to localize the problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Voronin, 2018-04-11
@Tophail

The solution that helped was to create a new project and systematically transfer all the code from the old project to the new one. I assume that the problem lay in several crookedly updated (if possible, of course) nuGet packages and the same crookedly configured Entity Framework'e (everything was set up quite a long time ago without much understanding of how it works).

#
#, 2018-04-02
@mindtester

if you see a clear difference between the static and the compiled part - maybe it's in the tariff plan, quotas for processor time? disk media? .. (maybe you have an SSD at home and there is a simple hard drive?)
In general, it is always safer to discuss it with the hosting support - they know both their chicken coop (hardware) and their policies (quoting)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question