Memory Limit
-
Hi,
We are using the free version of this plugin as a test before purchasing a full license as we need one of the full version features, however, upon testing, the plugin kills the loading speed of the site entirely (on any page that the plugin is being used), so much so, we had to disable the plugin. It also causes sporadic 500 errors. When the plugin is disabled, the site loads is fine again and loading speeds go back to normal.
On further investigation, we noticed the following errors occur that are related to the YITH plugin when enabled:
2021/05/09 21:21:45 [error] 100671#100671: *1447519 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 10489856 bytes) in /www/directwigs_555/public/wp-includes/functions.php on line 599” while reading response header from upstream, client: , server: directwigs.com, request: “GET /product-category/brand/nj-creation-paris?yith_wcan=1&product_cat=nj-creation-paris%2Cellen-wille&query_type_nape-cm=and&filter_nape-cm=16-0 HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php7.3-fpm-directwigs.sock:”, host: “directwigs.com”
This indicates that the plugin is making the site exceed the 512MB PHP memory limit when this plugin enabled. 512MB is a very generous PHP memory limit, it’s extremely rare that we should ever need to increase this on such a small, low traffic site. The plugin using so much memory resources suggests there is something wrong and the fix shouldn’t be to simply increase the memory limit.
With that said, we did try to increase the memory limit to 1024MB and the problem still occurred. We do not want to and shouldn’t need to increase our memory limit past 256MB. The plugin needs to be optimised for memory usage.
Please advise.
- The topic ‘Memory Limit’ is closed to new replies.