MVC application is slow for every page after restart

In addition to the notorious issue of slow startup, which occurs in an ASP.NET application running on IIS, we run into another.

After starting a new application (for example, iisreset), the first request takes some time, as usual. However, in the current application, every second request to a page that is not yet loaded takes about 10-12 seconds on the first hit!

After loading the page, all other requests for the same resource are quickly repeated (usually 80-130 ms). This is also true for first downloads from other client machines, so this is not a client caching issue.

For example:

Machine | Request           | Duration |
A       | GET /             | 43000 ms | (wakeup)
A       | GET /             |    90 ms |
B       | GET /             |    90 ms |
A       | GET /registration | 12000 ms |
A       | GET /registration |   110 ms |
A       | GET /registration |   110 ms |
A       | GET /registration |   110 ms |
A       | GET /foobar       | 11000 ms |
A       | GET /foobar       |    85 ms |
B       | GET /baz          | 10000 ms |
A       | GET /baz          |   100 ms |

, , DEV (debug = true ..). (debug = false, precompile ..), .

, , 1 . - .

.

+4
1
0

Source: https://habr.com/ru/post/1605960/


All Articles