Title: Strange memory usage
Last modified: January 11, 2017

---

# Strange memory usage

 *  [scorpiotiger](https://wordpress.org/support/users/scorpiotiger/)
 * (@scorpiotiger)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/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?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/strange-memory-usage/#post-8641789)
 * I suggest that you try contacting the developer of the wp-piwik plugin about 
   this issue as it seems that it is this plugin that is making the memeory call.
 *  Thread Starter [scorpiotiger](https://wordpress.org/support/users/scorpiotiger/)
 * (@scorpiotiger)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/strange-memory-usage/#post-8659904)
 * I don’t believe that the plugin is at fault here. In another occurance I have
   this;
 * 2017/01/16 13:10:19 [error] 32486#32486: *1004 FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   2338328528881218848 bytes) in /var/www/wp-admin/includes/class-wp-plugins-list-
   table.php on line 627” while reading response header from upstream, client: 180.254.218.5,
   server: dev.my-server.com, request: “GET /wp-admin/plugins.php HTTP/2.0”, upstream:“
   fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “dev.my-server.com”, referrer:“
   [https://dev.my-server.com/wp-admin/edit.php?post_type=shop_order&#8221](https://dev.my-server.com/wp-admin/edit.php?post_type=shop_order&#8221);
 * The attempted alloaction just can’t be right. At the very least, there’s got 
   to be a serious bug somewhere that’s causing misreporting on memory allocation
   requests.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Strange memory usage’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [scorpiotiger](https://wordpress.org/support/users/scorpiotiger/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/strange-memory-usage/#post-8659904)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
