I have recently upgraded from Magento CE 1.9.2 to

Since this we get the following error when Reports>Refresh Statistics is used:

Fatal error: Out of memory (allocated 1808531456) (tried to allocate 90 bytes) in /home/****/****/lib/Varien/Object.php on line 273

I have tried or can confirm the following:

  • we are on a dedicated server
  • php_memory_limit is 2048M set through MultiPHP INI editor in WHM. I have also had the error when setting it equally high in php.ini file and .htaccess
  • phpinfo.php shows php_memory_limit at 2048M
  • No error when refreshing statistics on a staging version running on the same server
  • No error on a fresh install of on the same server (although this has no products or orders)
  • No error when statistics are refreshed using cron
  • Error still happens after disabling all extensions in local / community and using standard Magento template
  • nothing in system.log or exception.log

Any new ideas I can follow up would be really useful.

  • Try change memory limit to -1. How many RAM have your server? Try use commands free -m or top to check memory usage – BartZalas Oct 26 '18 at 0:11
  • @BartZalas free - m shows total 15877 used 4892 free 9030. I tried changing memory limit to -1 but still got the error – Ben Woodcock Oct 26 '18 at 9:11
  • I'm not sure but maybe try change ini_set('memory_limit', in your index.php on magento root folder – BartZalas Oct 26 '18 at 9:24
  • Still getting the error. I have told the client to use the workaround of using cron scheduler to run the relevant cron jobs. Works fine doing it this way. – Ben Woodcock Oct 26 '18 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.