Hi Suresh
Have you had a read through the Warming up sites documentation page?
Basically, you can hardcode some URLs in web.config that will be warmed up sequentially after deployment. If you do not specify anything, it only warms up the start pages.
Be aware that it does not support sending AJAX requests.
Hi Stefan,
Thanks for your reply.
How to fix the Ajax requests(Partial Views) performance issue. Am i missing any configurations here? As per my knowledge, all MVC views render path will be cached. But i am wondering why each & every Partial View taking time to load for first request on every deployment.
Thanks,
Suresh B
If you don't filter non-AJAX request in you AJAX controllers, then you can use the same approach. What I meant was that if you use the Request.IsAjaxRequest()
method to reject non-AJAX requests, then you need to make some hacks to make them warm up.
In my experience the view path and view compilation are not the slowest parts. Loading content items or URLs in your partial views is often the slow part of a first render.
Have you measured which specific parts are slow?
Hi Stefan,
Issue with every page URL. Always first request of every page URL taking lot of time whenever we deploy or webapp restart.
I have tried to put some loggers and it is taking time on return view.
return view(model);
return PartialView(model);
Below is ticket reference, I also facing exact same issue.
Thanks,
Suresh B
Thanks,
Suresh B
"Return view" can spend time on different things. For instance:
You can try running dotTrace on the solution to see where most of the time is spent. If you find those places and improve them, then first load might be much faster.
Hi Stefan,
Thanks for your reply.
I am sure, issue from Finding the view. Because i am testing very basic view(i.e. simple <div>test</div>) which is also taking time on first request.
Hi Team,
I am currently facing performance issues for first request whenever latest deployed or Web app restarted in DXP.
I am facing performance issue with MVC partial views as well. So always first request is taking min 5 to 10 seconds to load. This is for every partial view request.(i.e. If we have 10 ajax calls then each call first requet taking time).
What is the best way to warmup the application to avoid performance issues with first request. Can someone provide any steps to do it?
Does my partial views issues will also resolve? If we configure warmup steps.
Thanks,
Suresh B