Extremely slow response AFTER upgrade from 4.40 to 4.40.3

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 anni tempo fa
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?
2 anni tempo fa
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?

Also, have you add the following commits?

https://github.com/nopSolutions/nopCommerce/commit/89113781d5e73214be62bd02be05f45f6766ef30

https://github.com/nopSolutions/nopCommerce/commit/bdee4652f944015eed457547a8c359c7a2d26c7d

https://github.com/nopSolutions/nopCommerce/commit/5de77853183079e9e8c7d33f8e6f741617b80be9

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.

e.g. https://github.com/nopSolutions/nopCommerce/issues/5461#issuecomment-797606632
2 anni tempo fa
[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.
2 anni tempo fa
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’ve not load tested 4.4.3 as yet.
2 anni tempo fa
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.
2 anni tempo fa
When you tested, did each version point to the same DB?
(If not, you may need to check settings, like use of ACL, etc.)
2 anni tempo fa
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.
2 anni tempo fa
ApteanATG wrote:
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?

Thanks,
Craig
2 anni tempo fa
bubbi wrote:
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.
2 anni tempo fa
Hello untiedshoes. Did you solve this?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.