• Resolved zanza321

    (@zanza321)


    hi, wanted to get an idea of what type of memory usage I should be expecting for a somewhat busy Woocommerce site? I currently have 2 Woocommerce sites on a Namecheap business hosting plan, it has a decent amount of resources, this is what it normally looks like.

    I ran some free promo giveaways on a few websites recently, and it brought some extra traffic to the site. I am assuming like between 15-35 concurrent users access the site (I do have WP Super Cache), but when this happened it completely shut down the website and the usage statistics all got maxxed out. So it said the site was using max 2GB of memory, and 50/50 CPU processes, so the website became unusable for the customers and even myself until it reset fresh basically.

    So I am wondering if this is normal behavior expected from Woocommerce? I was under the impression that the memory we allocated to it was 256MB (in the config file), so I don’t understand how it could reach 2GB memory. Or is this something that should not be happening? If anyone could help me on this would really appreciate!

    In other words, how much traffic should I expect my Woocommerce site to be able to handle? I use WP Super Cache, but obviously on shared hosting I can’t use Redis or persistent object cashing for the database. I am using an upgraded hosting plan, with higher resources, but just trying to figure out what is normal that I should expect, and what is not normal that I shouldn’t expect.

    • This topic was modified 3 years, 1 month ago by zanza321.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    I ran some free promo giveaways on a few websites recently, and it brought some extra traffic to the site. I am assuming like between 15-35 concurrent users access the site (I do have WP Super Cache), but when this happened it completely shut down the website and the usage statistics all got maxxed out.

    Technically, WooCommerce is able to manage many users visiting the site at the same time, and as many resources as your server permits, this is in accordance to https://woocommerce.com/document/server-requirements/

    That seems like an unusual behavior, I recommend as a first step to run a conflict test, that will need to switch the site’s theme to Storefront temporarily, and then disable all other plugins except WooCommerce, repeat the action that is causing the issue, next, see if the issue persists at this point, if not, it means there was a conflict, and you can switch back your theme to the original one, and then reactivate the rest of the plugins (Checking again after each reactivation) until you find the one that is affecting the site. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    You can also perform a test on your site using a browser extension like the Lighthouse it will generate a report related to the site’s performance.

    Let us know if there are any questions.

    Thread Starter zanza321

    (@zanza321)

    Hi thanks for the reply! I do appreciate your time. Yes, this does make sense, but unfortunately it will not be possible. We are using the Storefront theme now already too.

    We have a lot of integrated plugins, including many critical ones that the site simply wouldn’t function without (like payment plugins, shipping plugins, display Slider, etc). So its simply not really possible to disable everything and “run a test” since the site would not be really be usable to the customer at that point.

    Is that really the only way to find an issue, just eliminating all plugins and hope you find the correct one? There isn’t a way to monitor how much memory/resources each individual plugin is using, and then be able to make decisions from this record or log?

    Just to clarify, the pages all load fine (those are handled by the caching plugin I assume). The issue is with the checkout and admin panel. Once users get here, it starts to just give “timeout errors” etc… Assuming because this part can’t be cached and is more server intensive.

    • This reply was modified 3 years, 1 month ago by zanza321.

    Hi @zanza321

    Is that really the only way to find an issue, just eliminating all plugins and hope you find the correct one? There isn’t a way to monitor how much memory/resources each individual plugin is using, and then be able to make decisions from this record or log?

    We understand you here.

    I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    Let us know how it goes!

    Thread Starter zanza321

    (@zanza321)

    As mentioned in the original post, this behavior (which I still am not sure if its a bug or not) happens when the site being visited by potentially 20-30 people at the same time, and assumed they are doing actions such as checking-out, adding items to cart, and attempting payment. How do you suggest we recreate this?

    Why can’t WordPress have a memory monitor feature to tracking how much memory each plugin is using? How is it able that a WordPress installation would use up to 2GB of system memory resources, if the config file is limited to 256MB?

    Hi @zanza321 ,

    As mentioned in the original post, this behavior (which I still am not sure if its a bug or not) happens when the site being visited by potentially 20-30 people at the same time, and assumed they are doing actions such as checking-out, adding items to cart, and attempting payment. How do you suggest we recreate this?

    To recreate the scenario you mentioned, where 20-30 people are visiting your site simultaneously and performing actions, you can use load testing tools, such as Loader.io.

    These tools simulate multiple users accessing your site and performing various actions. By using these tools, you can identify any performance bottlenecks or issues that may arise when your site experiences high traffic.

    I’d suggest reading this article which shares the WordPress Load Test Prerequisites before performing a load test on your site.

    Why can’t WordPress have a memory monitor feature to tracking how much memory each plugin is using

    While WordPress itself doesn’t have a built-in memory monitor, there are plugins available that can help you track memory usage, such as the free Query Monitor plugin.

    I also found a great article with shares some High Traffic Tips for WordPress, if you would like to give it a read 🙂

    Cheers!

    Thread Starter zanza321

    (@zanza321)

    thanks! will try those !

    Hi @zanza321 ,

    That sounds like a plan!

    We’ll be here if you have any other questions 🙂

    Cheers!

    Hi @zanza321 ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – feel free to create a new topic  should you need any further help.

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Memory issues with Woocommerce?’ is closed to new replies.