High CPU lot of PHP processes

Hi,

I have too often now a lot of CPU usage, near 100%, and some PHP processes are eating it.

Most errors in the log are related to this:
2024/08/21 07:39:05 [error] 1190#1190: *13820741 FastCGI sent in stderr: “PHP message: PHP Warning: math: illegal characters in /home/noksrs/www/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php on line 76” while reading response header from upstream, client: 109.245.227.85, server: noks.rs, request: “GET /keramickeplocice/bond-wood-decofon-40x120cm/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/noksrs_php-fpm-74.sock:”, host: “noks.rs”

Do you have some advice, on how to solve this?

Thanks in advance!

I’m not sure that a PHP Warning will cause high CPU but there is a post, from last year, concerning your issue. There isn’t a fix in the post but hopefully @CS-Cart_team remembers and knows.?

You may want to provide your CSC version to help.

Thank you for your answer.

Yes, there is no answer in that topic, but hopefully someone will have some idea.

PHP warning will not cause a lot of CPU usage by itself, but when I asked server technicians they say that high CPU is because lot of PHP processes and they send me that image that is attached showing that first line. After they do some reset to PHP CPU is normal, but few hours later same problem…

Fix for this warning is either to downgrade used PHP version or upgrade installation & theme (if third party one is being used) :slight_smile:

Yes, PHP warnings should not increase the load on the server. Without examining the installation, a little can be assumed.

Try checking the access logs, you may find some strange requests or a swarm of bots/crawlers.

Thank you for your answer @CS-Cart_team

Upgrade of CS-Cart and Youpi theme version is done by CS Cart technicians. So everything should be ok with that, I dont know…

I am using 4.17.2.SP1 and Youpi theme 4.17.2.a.

I have a bad bod protection on the server, and server technician said that its all ok with that.

Thank you for the reply.

Then it may be some third party add-on that uses incorrect smarty math function.

Please contact us via Help Desk, so that we could identify what exactly is causing this error.