Strange memory usage
-
I’m running WP with Woocommerce and a few plugins including wp-piwik. I have Nginx running as reverse proxy and implementing SSL. Periodically I’m getting 504 Bad Gateway errors. These occur in both the admin panel and the front end. In a recent instance, the Nginx log contained this;
2017/01/11 06:56:07 [error] 25260#25260: *5697 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140701003375704 bytes) in /var/www/wp-content/plugins/wp-piwik/wp-piwik.php on line 33” while reading response header from upstream, client: 96.47.239.2, server: dev.my-server.com, request: “GET /wp-admin/admin-ajax.php?action=woocommerce_mark_order_status&status=processing&order_id=6616&_wpnonce=71e076ae15 HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “dev.my-server.com”
Searching has found many cases where people are running out of memory, but where the alloction request was small. I’m seeing a huge allocation request. Is this correct, or is it being falsely reported?
For now I’ve upped the memory limit for PHP to 256MB and restarted PHP, but I’d like to understand the underlying problem. How can I best troubleshoot this?
- The topic ‘Strange memory usage’ is closed to new replies.