Loading xml exporter from cq 5.6 giving browser error that says 'Not enough memory to open page'
Loading xml exporter from cq 5.6 giving browser error that says 'Not enough memory to open page'.
The XML is expected to be generated from the application code logic scanning certain type of pages.
The logic works and I can see the content starting to load in initial 10 seconds but due to more content the xml file takes almost 45-50 seconds before it shows up 'Not enough memory to open page' message.

This is coming in live environment only hence it is difficult to debug. Are there any known causes of such an error?