High CPU load by Magento-based website

Created:

2017-06-26 10:34:18 UTC

Modified:

2017-08-16 16:44:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

High CPU load by Magento-based website

Applicable to:

  • Plesk Onyx for Linux

Symptoms

CPU is used mostly by Magento-based website, as 'top' command shows.

Stracing one of the processes shows that several files and directories are not found of the file system:

# strace -o strace.log -vts1024 -p <processID>
[root@server ~]# grep "such" /root/strace.log
07:52:30 readlink("/var/www/vhosts/example.com/httpdocs/vendor/magento/module-sales/view/ui_component/etc/definition.xml", 0x7ffed675e2b0, 4095) = -1 ENOENT (No such file or directory)
07:52:30 lstat("/var/www/vhosts/example.com/httpdocs/vendor/magento/module-sales/view/ui_component/etc", 0x7ffed6759130) = -1 ENOENT (No such file or directory)

Numerous read attempts in a few seconds:

[root@server ~]# grep "such" strace.log | wc -l
62620

Magento file caching is enabled in Magento administration panel > system > cache management.

Cause

PHP process repeatedly tries to read the missing files of Magento application, very intensively, generating high CPU load.

Resolution

Contact the website owner to restore the missing files.

Have more questions? Submit a request
Please sign in to leave a comment.