ASP.NET MVC Engine Performance

I am developing a highly loaded solution with the final version of asp.net mvc. Recently, our team noticed that most of the time it takes the server to respond to the client is devoted to rendering the page. A simple graph is as follows:

Page start   - 1.8608363s
Render module 1140/Modules/Owners start      - 1.86859s
Render module 1140/Modules/Owners Complete   - 1.9081751s
Render module 829/Modules/Links start    - 1.9081788s
Render module 829/Modules/Links Complete     - 2.3380648s
Render module 1036/Modules/Advertisement start   - 2.3459101s
Render module 1036/Modules/Advertisement Complete    - 2.3482298s
Render module 1110/Modules/Goodies start     - 2.3482322s
Render module 1110/Modules/Goodies Complete      - 2.6300744s
Render module 1004/Modules/TopicLinks start      - 2.6300784s
Render module 1004/Modules/TopicLinks Complete   - 3.8852529s
Render module 1048/Modules/News start    - 3.8927697s
Render module 1048/Modules/News Complete     - 4.4958795s
Render module 1128/Modules/SuggestedLinks start      - 4.4958832s
Render module 1128/Modules/SuggestedLinks Complete   - 4.5704227s
Page end     - 4.5711193s
TopicMainMenuPages start     - 4.5717661s
TopicMainMenuPages End   - 4.571974s
Render Finished      - 4.6185852s

What could be causing such a slow rendering? Is this often used for partial rendering on a single request?

+2
source share
1 answer

Make sure compilation debug="false"yours web.configand create the application in Release mode. This will allow the MVC structure to cache the paths that it allows for your partial views.

. .

,

Dan

+5

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


All Articles