Skip to content

Searchandise creates high CPU in CS-Cart (4.2, 4.3)

Feb 15, 2016 | PHP / MySQL, Shopping Carts

What causes high CPU in Searchandise and CS-Cart?

We’ve noticed an issue where Searchandise eats up a large amount of CPU.  In some instances, when you turn on Searchandise from the add-ons it spins the CPU up to a point where it can even crash.

This is heavily dependent on how many products you have in your catalog. It can be barely noticeable on CS Cart catalogs that have a dozen or less products, however, in a cart with 2,500 or more – we have seen significant load.

Searchanise can affect the CPU utilization when the initial indexation is engaged or when the catalog has been heavily updated – such as a mass import or change. This is because it has to send the catalog data to the Searchanise servers when this happens. You can decrease the load on your CPU by decreasing the number of products that are sent at once.

Here is how you do this:

1. Open the app/addons/searchanise/func.php file.

2. Find the line:

fn_define(‘SE_PRODUCTS_PER_PASS’, 100); // Number of products submitted in a single API request during a full catalog synchronization

Replace 100 with a lower value (50 or even 5)

3. Save the file.

It is important to note that the lower the value is, the longer the indexation process will take.

Hope this will help.

Contact us if you need any help with CS-Cart – we’re always available.

Contact Us Today!

"*" indicates required fields

I would like to be contacted by:*
This field is for validation purposes and should be left unchanged.

Join Our Newsletter List!

* indicates required