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
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.
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.
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.
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.
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.
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.
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.