High CPU load

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
3 months 2 weeks ago #362963

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.3

Hi,
I have a problem with Hikashop causing high CPU load.

I checked various options and this is what I managed to determine:
- a working page with the Hikashop backend component disabled - CPU load within the norm at 25%
- a working page with the Hikashop component enabled - load from 75% to 100% CPU - with a minimum number of potential users.
The question is whether the number of products - over 6000 - could be the problem?

Where and how to look for the cause?

Tom

Please Log in or Create an account to join the conversation.

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
3 months 2 weeks ago #362965

Update
I noticed that disabling additional content languages ​​caused a significant reduction in CPU load.

Question - could the fact that Falanga is installed (test disabled) and in the meantime Hikashop has its own translation system have an impact on this?

Tom

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
3 months 2 weeks ago #362968

Hi,

Note that even if you disable the Falang component, if you have the Falang system plugin enabled, it won't change anything on the frontend. The plugin, which handles Falang translations on the frontend, will still run normally. So if you want to disable Falang, you also need to disable that plugin.

And Falang is quite resource hungry as it needs to run an extra MySQL query for (almost) each query your website runs without it. And on top of that, it needs to process the queries and the results of those queries to replace the texts with their translated texts.

HikaShop's translation system doesn't add much extra processing. It relies on the Joomla translation overrides system. So when you use it, it just increases the size of the language override file where the translation overrides are stored. But processing a translation file, even if it's big, is not a problem. Joomla and PHP are optimized as much as possible for this since Joomla already needs to parse dozens of translation files for each page.
So if you have resource issues with Falang, migrating to HikaShop's built in translation system would solve the problem. However, that also means having to add back all the translations as there is no tool to automate the migration process as far as I know.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum