We have a custom order export script that runs out of memory. Exporting a small time range works fine, but exporting all of December does not (more orders than usual, due to the holidays.)
I added some log statements to give me the memory usage at various points in the process, and ran the export for a small time range. It appears that the spike happens when rendering the report.
Beginning of controller action Memory: 5.84M
<database query happens at this point>
after getReport() Memory: 19.48M
<now Magento prepares our HTML output>
End of controller action Memory: 44.14M
*When exporting a large dataset, "End of controller action" never gets reached.
We really only need to use the CSV export feature, but we can't even get to that because you have to "Refresh" the grid before clicking "Export."
Short of re-writing this as a stand-alone report (outside of Magento) I'm not sure what to do. Anyone?