I’m using DevKinsta on a new macbook pro (M1). The front-end of one of the websites loads fine, but the wp-admin back-end is painfully slow, sometimes taking 20-30 seconds to load a page.
Additionally (and more importantly), with one specific website, I get a 500 error on admin-ajax.php that prevents using the Elementor plugin entirely. This is the error I’m getting in the browser console:
Failed to load resource: the server responded with a status of 500 () /wp-admin/admin-ajax.php:1
When I check the nginx error log, I see the following error:
2021/08/27 22:21:31 [error] 102#102: *195 FastCGI sent in stderr: “PHP message: PHP Fatal error: Out of memory (allocated 62164992) (tried to allocate 7751200 bytes) in /www/kinsta/public/corneacare/wp-content/plugins/elementor/core/common/modules/ajax/module.php on line 265” while reading response header from upstream, client: 172.18.0.1, server: corneacare.local, request: “POST /wp-admin/admin-ajax.php HTTP/2.0”, upstream: “fastcgi://172.18.0.3:9002”, host: “corneacare.local”, referrer: “https://corneacare.local/wp-admin/post.php?post=975&action=elementor”
I’ve increased the max_execution_time in php to 1200, increased max_input_time to unlimited (-1), and increased memory_limit to a whopping 2048, and I still get the same error.
I’ve also tried editing and adding some rules to the nginx config:
fastcgi_buffers 16 32k;
After restarting php-fpm and nginx from the docker dashboard, none of these changes seem to have any effect.
I’ve also tried disabling every plugin aside from Elementor, and the problem persists.
This is a site that’s cloned from Kinsta, and it works very fast, with no errors, on the live Kinsta host. It also works fine in my homespun local dev environment on my old macbook. So this issue seems to be isolated to the DevKinsta environment.