We're implementing a .NET DXA based solution for a client. We found the loading time of images on pages is very long. Most of their TTFB time is more than 10s which impacts the performance of the site.
DXA version is 1.6.
configuration in Web.config is:
<modules runAllManagedModulesForAllRequests="true"> <add name="DxaStaticContentModule" type="Sdl.Web.Mvc.Statics.StaticContentModule" /> </modules>
viewModel-caching is also enabled.
update on 7/2 the issue happens for all binaries. even the image is very small (2K). for application pool setting, we have already set 'recycling ->regular time interval' to 0 I enable the trace log. I see even those images can be found in file cache. they still need much time to be loaded. below is the log for one image. it spent 35 seconds to load. (I hidden some sensitive url). the time between content url rewriting and OnPreRequestHandlerExecute for the rewritten url is very long.
2019-07-02 10:08:42,262  TRACE - StaticContentModule.BeginRequest(ASP.global_asax, System.EventArgs) : "/**/**/system/v0.120/assets/images/icons/icon-fly-from.png" entry. 2019-07-02 10:08:42,723  DEBUG - Rewriting versioned static content URL '/**/**/system/v0.120/assets/images/icons/icon-fly-from.png' to '/**/**/system/assets/images/icons/icon-fly-from.png' 2019-07-02 10:09:17,303  TRACE - StaticContentModule.OnPreRequestHandlerExecute(ASP.global_asax, System.EventArgs) : "/**/**/system/assets/images/icons/icon-fly-from.png", 0001/1/1 �W�� 12:00:00 entry. 2019-07-02 10:09:17,387  DEBUG - Binary with URL '/**/**/system/assets/images/icons/icon-fly-from.png' is still up to date, no action required
updated on 7/4 application pool setting
- Recycling->Private Memory Limit:0
- Recycling->Regular Time Interval:0
about the log, I just pick those related to that picture. there is only entry because I saw url '/system/v0.120/assets/images/icons/icon-fly-from.png' is rewritten to '/system/assets/images/icons/icon-fly-from.png', and between the entry of original url and entry of rewritten url, the time is 35 seconds. Even in every step, the time is very short. But in front end, we will see it will take more than 35 seconds to load the image.