Service Outage: Looks like we are having some issues with our service. We are working hard to bring it online again.
Why is my AEM QA instance experiencing service outages when I invoke a servlet that exports image paths to an Excel file, especially when large content trees are involved.
Error -- Service Outage: Looks like we are having some issues with our service. We are working hard to bring it online again.
Context & What I’m Trying to Achieve:
I have developed a utility tool in AEM that:
• Accepts a page path input from a custom UI (utility tool in AEM console).
• Hits a servlet (/bin/export-image-paths).
• This servlet recursively traverses the page and its child pages, reads all components, extracts image paths from each component’s properties
• Checks if the image exists in DAM.
• Writes the results into an Excel file using XSSFWorkbook.
• Returns the Excel file as a download.
Requirements/Expectations:
• The tool should support any valid AEM page path (e.g., /content/wknd/us/en/TestPages) etc.
• The servlet should work reliably in Dev, QA, and Stage environments.
• The Excel file should be generated and downloaded without memory issues or long processing delays — even for large content structures or experience fragments.
Current Problem:
• In the QA environment, when I pass a path with a large number of child pages or components (e.g., XF structure or /us/en/services), the servlet eventually leads to:
• Service outage after processing in longer time duration
• Errors like: org.apache.poi.openxml4j.exceptions.OPCPackage$PackageIOException. (docProps/app.xml)