I have upgraded to nopCommerce 4.30 from 4.20 for faster speed. But it is actually much slower. For example, the start up is very slow. It can take more than 12 s to get a response for initial post. It just does nothing during the period. Here is the debug log:
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor: Information: Executed ViewResult - view Index executed in 60535.5554ms. Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Information: Executed action Nop.Web.Controllers.HomeController.Index (Nop.Web) in 60676.2995ms Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint 'Nop.Web.Controllers.HomeController.Index (Nop.Web)'
There are no SQL queries in the debug log. So it may not be caused by slow database queries. What's the real issue? How do I debug this?
Steps to reproduce the problem: 1. Run nopCommerce 4.30 and 4.20 websites with two identical databases (copy) side by side on local server through Visual Studio debugger. 2. Turn on mini profilers on each. 3. The result for reloading home page: 4.30 spends 56s in request while 4.20 1.5s. 4.30 is 40 times slower in reloading the home page than 4.20. Please the mini profiler screenshots below.
The same issue occurs on production server https://bebooks.com.au. The slow request seems across many pages. The whole site becomes slow and unusable.
We believe 4.30 should be faster. But why there is such an unreasonable long request in 4.30? Did I miss something? How to investigate it further?
The home page's reloading time is about 10 times longer when a user is logged in. Why there is such a big difference in reloading time? Please point out the possible causes.
These tests were conducted on a production server.
User logged out:
Admin user logged in:
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.