Can’t get PHP to allow memory size larger than 536870912 bytes. Magento Script

I am trying to run a product export with Magento’s dataflow using the CLI script found here:

The issue I am facing is the script always stops with the following error:

Fatal error: Allowed memory size of 536870912 bytes exhausted

I have attempted to change the memory_limit for PHP in multiple places:

  • Changed all php.ini files
  • Added “ini_set(“memory_limit”,”1024M”);” to the code.
  • Input “php -d memory_limit=1024M” at the command line.
  • Checked the setting using the CLI command “php -i | grep
  • Checked the memory_limit using phpinfo()

…and yet I cannot get the script to execute beyond 536870912 bytes.

Is there something built into Magneto that would stop this? I am running out of ideas.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s