Memory Consumption Problem with NopCommerce 4.1 (Core Framework) + Everleap hosting

Posted: March 13, 2019 at 3:10 PM Quote #225004
Hi guys!
I installed my first NopCommerce v4.1 w/Core Framework on an Everleap server.
Previously, I have installed NopCommerce 3.9 instances on Azure and they are running smoothly.
As you know Azure is expensive, so we are testing on Everleap now, looking for a better cost-benefit hosting option.
From the very beginning, the NopCommerce started crashing (having all kind of errors, from 502.3, 502.5, internal error, etc.
Yesterday, I got an Everleap email message stating that my NopCommerce instance is crashing because it's consuming more than 500 MB and the rule for the instance option I selected states that the site should get a pool recycling after exhausting the memory provided.
Is it normal having this memory consumption (in order to increase my site memory) or am I doing (configuring) something wrong ? Is there another problem ? Configuration ?
I have read that one of the reasons for upgrading to NopCommerce 4.1 was a lower memory consumption.
I am attaching some images with my publish settings, site configuration and the resources usage graphic.
Thanks a lot.
Regards,





This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: March 13, 2019 at 8:07 PM Quote #225018
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Please up-vote the answer, if it helpful to you! :)

Cheers,
sk5202
Posted: March 14, 2019 at 7:12 AM Quote #225042
sk5202 wrote:
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx


Hello,

Actually, nopCommerce 4.1 package already has that fix. Andrei added it after I reported it in August 2018. If you've downloaded your nopCommerce after August 2018 you should not implement this.

You might have a different problem here. You might just not have enough memory to run nopCommerce. In my experience running nopCommerce 4.1 on demo stores (stores that don't get a lot of users visiting simultaneously) requires somewhere between 180mb and 300mb of memory. This surely changes when your store is under load. So you might just need more memory.

I had a client that is using Everleap and my suggestion to them was to get 1GB of memory per store so he can avoid issues like that. I would suggest the same to you.

Although, don't rely just on my opinion and actually try to find out when those spikes in using memory happen. If it is when you have a lot of users you will just need more memory.

Hope that helps!

Regards,
Anton
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.Nop-Templates.com - the best place for nopCommerce themes and plugins

Follow us on
Facebook: http://www.facebook.com/NopTemplates
Twitter: http://twitter.com/NopTemplates
Blog: http://www.nop-templates.com/blog

www.Nop-Templates.com
nopCommerce Solution Partners
Posted: March 14, 2019 at 10:44 AM Quote #225062
Hello Anton,

Thanks for the update me on this topic.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Please up-vote the answer, if it helpful to you! :)

Cheers,
sk5202
Posted: March 15, 2019 at 7:16 AM Quote #225100
Nop-Templates.com wrote:
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx

Hello,

Actually, nopCommerce 4.1 package already has that fix. Andrei added it after I reported it in August 2018. If you've downloaded your nopCommerce after August 2018 you should not implement this.

You might have a different problem here. You might just not have enough memory to run nopCommerce. In my experience running nopCommerce 4.1 on demo stores (stores that don't get a lot of users visiting simultaneously) requires somewhere between 180mb and 300mb of memory. This surely changes when your store is under load. So you might just need more memory.

I had a client that is using Everleap and my suggestion to them was to get 1GB of memory per store so he can avoid issues like that. I would suggest the same to you.

Although, don't rely just on my opinion and actually try to find out when those spikes in using memory happen. If it is when you have a lot of users you will just need more memory.

Hope that helps!

Regards,
Anton



I'm not sure this change are included. We make upgrade 4.0 > 4.1 in january 2019 and we don't have… After (i'm think your help) we "install it" and fix problem with difference behaviour page for guest / logged user.


After that… we "consume" 1 - 1,2 GB Memory... not sure is it normal… we have small person on page / small catalog…
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Hmmm...
Posted: March 15, 2019 at 10:00 AM Quote #225102
sk5202 wrote:
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx


Thanks a lot!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: March 15, 2019 at 10:18 AM Quote #225103
Nop-Templates.com wrote:
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx

Hello,

Actually, nopCommerce 4.1 package already has that fix. Andrei added it after I reported it in August 2018. If you've downloaded your nopCommerce after August 2018 you should not implement this.

You might have a different problem here. You might just not have enough memory to run nopCommerce. In my experience running nopCommerce 4.1 on demo stores (stores that don't get a lot of users visiting simultaneously) requires somewhere between 180mb and 300mb of memory. This surely changes when your store is under load. So you might just need more memory.

I had a client that is using Everleap and my suggestion to them was to get 1GB of memory per store so he can avoid issues like that. I would suggest the same to you.

Although, don't rely just on my opinion and actually try to find out when those spikes in using memory happen. If it is when you have a lot of users you will just need more memory.

Hope that helps!

Regards,
Anton


That's correct.
The source code downloaded already included the fix.

And precisely because of the mention on the post (https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx) about the memory consumption of 170 MB aprox. I had the doubt if there was something wrong with my instance.

So, in your experience, should we allocate 1 GB of Memory for my site, right ? In addition, we have the Emporium theme installed, I don't know if this requires additional memory requirements.

Thanks a lot.
Regards,
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: March 15, 2019 at 10:18 AM Quote #225104
Zyje_sobie wrote:
It's already here.

May be this will help you.

https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx

Hello,

Actually, nopCommerce 4.1 package already has that fix. Andrei added it after I reported it in August 2018. If you've downloaded your nopCommerce after August 2018 you should not implement this.

You might have a different problem here. You might just not have enough memory to run nopCommerce. In my experience running nopCommerce 4.1 on demo stores (stores that don't get a lot of users visiting simultaneously) requires somewhere between 180mb and 300mb of memory. This surely changes when your store is under load. So you might just need more memory.

I had a client that is using Everleap and my suggestion to them was to get 1GB of memory per store so he can avoid issues like that. I would suggest the same to you.

Although, don't rely just on my opinion and actually try to find out when those spikes in using memory happen. If it is when you have a lot of users you will just need more memory.

Hope that helps!

Regards,
Anton


I'm not sure this change are included. We make upgrade 4.0 > 4.1 in january 2019 and we don't have… After (i'm think your help) we "install it" and fix problem with difference behaviour page for guest / logged user.


After that… we "consume" 1 - 1,2 GB Memory... not sure is it normal… we have small person on page / small catalog…


Hi,

That's strange. There should be a Nop.Web.runtimeconfig.json file in your root directory that has the following line:

"System.GC.Server": false 


In that case, you have the fix. I've checked the NoSource nopCommerce package and it has the fix.

As for the 1-1,2 GB of Memory usage, I'm not sure. The Memory consumption will depend on traffic and the number of entities (categories, products, manufacturers, etc) in your store database.

Regards,
Anton
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.Nop-Templates.com - the best place for nopCommerce themes and plugins

Follow us on
Facebook: http://www.facebook.com/NopTemplates
Twitter: http://twitter.com/NopTemplates
Blog: http://www.nop-templates.com/blog

www.Nop-Templates.com
nopCommerce Solution Partners
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.