Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 3643709 bytes) in [path_to_install]/sites/all/modules/deploy/deploy.core.inc on line 40
I've even tried increased my memory limit to 1024 MB and it's still getting a similar error.
I am trying to deploy about 30 nodes and authors. Each node has a single entity reference to a node which I also want deployed.
Why would batch API run out of memory?
I have followed the advice on this page, and so have all dev versions installed:
https://drupal.org/node/679604
Comments
Comment #1
gillarf commentedOK, well my solution has been to deploy fewer nodes at a time. I would have thought 30 nodes could be handled by Batch API though.
Comment #2
reevo commentedI've often run into massive dependency tree issues with entity referenced nodes. In our case, we have article nodes which have related articles. Our editors almost always reference 3 or 4 articles so, when it comes to deployment, the newest article was deployed along with those 3 or 4 referenced articles, and each of those caused 3 or 4 referenced articles to be deployed, then each of those...
Not sure what your content structure or deploy use-case is, but we got around the issue by making certain assumptions: namely that referenced nodes would've already been deployed - we auto-deploy on publish - and thus we remove nodes from the dependency tree using hook_entity_dependencies_alter().