NopCommerce high traffic problem

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello guys,

I have a problem in my work... we have a NopCommerce (fisrt 3.80 and now 3.90) project with integrations (self develop) to internal company systems (via WebService) like inventory in real time, sales, banks, etc.

Our problem is with server. our servers dead (processor goes to 100%) every day and we dont know if is a problem of our plugins or is for our server resources

AWS - EC2

- 4 virtual cores
- 16 Gb RAM

The data base is in a other server (RDS also by Amazon).

Our avg trafic is 400 concurrent users (+/- 100) and 24k active users daily
6 years ago
Hi,

The best way to find out he cause of issue is to do a profiling with real site. With many concurrent users you will need to optimize several methods, add indexes to the tables and switch to SP at many places.

Regards,

nopAccelerate
6 years ago
I have found a problem.

nop uses a lot of @Widget("") areas on views, only product box has at least 5. It causes a lot of problems once for each product box, nop has to invoke 5 times all widgets plugins you have for each user on your site.

So, if you are not using widgets on productbox, delete it.

I have reduce TTFB in 50% doing that.

Do a search on all your views and leave only necessary widgets call.
6 years ago
nopAccelerate wrote:
Hi,

The best way to find out he cause of issue is to do a profiling with real site. With many concurrent users you will need to optimize several methods, add indexes to the tables and switch to SP at many places.

Regards,

nopAccelerate


tks for your answer. This site is in production right now
6 years ago
hruvalcaba wrote:

I have found a problem.

nop uses a lot of @Widget("") areas on views, only product box has at least 5. It causes a lot of problems once for each product box, nop has to invoke 5 times all widgets plugins you have for each user on your site.

So, if you are not using widgets on productbox, delete it.

I have reduce TTFB in 50% doing that.

Do a search on all your views and leave only necessary widgets call.



Thanks for sharing these findings with us. Glad to know its fixed now.

Regards,

Krunal
6 years ago
nopAccelerate wrote:

I have found a problem.

nop uses a lot of @Widget("") areas on views, only product box has at least 5. It causes a lot of problems once for each product box, nop has to invoke 5 times all widgets plugins you have for each user on your site.

So, if you are not using widgets on productbox, delete it.

I have reduce TTFB in 50% doing that.

Do a search on all your views and leave only necessary widgets call.



Thanks for sharing these findings with us. Glad to know its fixed now.

Regards,

Krunal



Sorry but TTFB no is my problem. My problem is that when I have many users, sometimes the processor goes to 100% and my store die.
6 years ago
Hi,

Because each site is different it's not easy to predict what may be causing this. The best way to find out he cause of issue is to do a profiling with real site.

Regards,

Krunal
6 years ago
And how can i do that?
6 years ago
hruvalcaba wrote:
And how can i do that?


If you don't know it already, then you can learn it from Google or YouTube. Just search for Dot Net Profiling and you'll find many tools. Review them and use the one which you think most comfortable. Also there are many tools which offers free trials, so you don't need to pay upfront to them.
6 years ago
When you know what TTFB is, what happen on nop when users access your site, you will see that TTFB is your problem.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.