I'm using AWS together with Cyberpanel, the instance has 32.0 GiB of RAM, and 4 vCPUs, which I believe was enough.
However, when I access the WPLMS PWA single page and do almost anything (click on a course, search for a course, student, etc., click on a button), the CPU usage goes up to 100, which is way too much, and it's just 1 user. I can imagine what will happend if hundred of students login at the same time?
When I do similar things in my other subsite, the maximum usage I get is about 20% CPU usage.
How can we fix this, and what do you recommend doing?
This definitely a mis-configuration. Is any cache system enabled in your site ? Mis -configured cache can be caching entire site on every api hit. Try disabling any opcache that is enabled in your site.
Hi,
I'm using AWS together with Cyberpanel, the instance has 32.0 GiB of RAM, and 4 vCPUs, which I believe was enough.
However, when I access the WPLMS PWA single page and do almost anything (click on a course, search for a course, student, etc., click on a button), the CPU usage goes up to 100, which is way too much, and it's just 1 user. I can imagine what will happend if hundred of students login at the same time?
When I do similar things in my other subsite, the maximum usage I get is about 20% CPU usage.
How can we fix this, and what do you recommend doing?
This definitely a mis-configuration. Is any cache system enabled in your site ? Mis -configured cache can be caching entire site on every api hit. Try disabling any opcache that is enabled in your site.
Yes. I've always used Litespped cache plugin. However, this is happening recently.
Can you take a closer look plase. Now this is happening, right now that I'm having new important customers using the platform:
Here's a video of the issue, it starts loading and then the isuse appears:
https://watch.screencastify.com/v/KA4sFuUQENzWF2smWpUO
Yes please try deactivating that plugin , also contact webhost and ask them to deactivate any internal opcache or redis caching as well .