After upgrading, the site is extremely slow!! Underload, approximately 50 users, the home page is taking approximately between 12 to 20 seconds to respond. On the same hardware setup, previously we were getting about 3 to 4 second response.
Upon debugging, it appears 90% of the slow time is in the middleware. I also see references to Authentication Middleware.
I know that between 4.40 and 4.40.3, there was a change between ASP.NET default DI and a switch to AutoFac.
1: Could this AutoFac change be the cause? 2: How can we get a list of all the MiddleWare the NopCommerce registers upon startup? 3: Has anyone experienced performance issues with 4.40 or 4.40.3?
The change back to AutoFac was due to excessive memory usage. If you're happy with that, and your server can handle it, roll back, and try with the internal DI?
If you still have issues, then maybe use something like https://loader.io to run some tests, and post those results over on GitHub as an issue, detailing your sever spec, and any custom work you've done (also, amount of categories, products, etc) - give as much detail as you can.
[quote=untiedshoes]The change back to AutoFac was due to excessive memory usage. If you're happy with that, and your server can handle it, roll back, and try with the internal DI?
Quick Question: Was the excessive memory usage an actual Memory Leak or just to much memory utilization? I saw some posts saying that it was a memory leak and to fix it the Nop team moved back to AutoFac?
Reason I am asking, is if we can temporary rollback to an earlier 4.40 version until we can deduce the immediate cause.
I’ll be honest, I never even paid any attention to memory when doing my load tests. We have a high spec server with 128bg ram, Sql sever with 30g allocated.
This is a quote from a post regarding memory usage for 4..4.1/2
“ We have multiple NopComemrce x86 versions 4.40 and 4.40.1 that are requiring between 1 GB and 3 GB of app pool memory to run (1.5 GB private memory up to 2.5 GB of the virtual memory).
These are all small installs with just a few dozen products that when running NppCommerce 4.30 used under 200 MB of app pool memory to run.”
I’ve just finished porting a clients large 4.30 to 4.4.3, and that will be going onto the sever next week for tests, so I’ll be keeping an eye on things.
I can confirm that upgrade from 4.40.2 to 4.40.3 slow down response for product page (all are simple product template)
I have total of 8 product in category so it is very small shop and loading time for product detail went from 1 sec to 4-5 sec. When I revert back to 4.40.2, it is working fine.
We solved this problem by changing the Middleware. There was change in the middleware specifically around the Theme middleware that causes heavy latency every time it is instantiated. We switched from Scoped to a Singleton lifetime dependency and it solved the majority of the slowdown.
We solved this problem by changing the Middleware. There was change in the middleware specifically around the Theme middleware that causes heavy latency every time it is instantiated. We switched from Scoped to a Singleton lifetime dependency and it solved the majority of the slowdown.
I've just been looking at this, as we're experiencing a deterioration in performance with multiple themes.
Did you change IThemeProvider & IThemeContext to Singleton?
I can confirm that upgrade from 4.40.2 to 4.40.3 slow down response for product page (all are simple product template)
I have total of 8 product in category so it is very small shop and loading time for product detail went from 1 sec to 4-5 sec. When I revert back to 4.40.2, it is working fine.
I have the same problem. Category page is very fast, product page is very slow.