AEM Guides: Slow output generation for large DITAMAP files using legacy AEM Sites output

This article explains why output generation for large DITAMAP files takes an unusually long time in Adobe Experience Manager (AEM) Guides when using the legacy AEM Sites output preset and provides steps to optimize performance and troubleshoot stuck jobs.

Description description

Environment

Adobe Experience Manager Guides (all versions using legacy AEM Sites output)

Issue/Symptoms

  • When publishing large DITAMAP files, for example, containing 2,600 topics or more, with the legacy AEM Sites output preset in AEM Guides, output generation may take over 6 hours to complete.
  • The issue can occur in any environment.
  • The issue may impact the performance of the Author instance, causing other output jobs to queue and affecting multiple teams.
  • Output jobs remain in the Executing state for long periods, especially after workflow failures or system restarts.
  • Cancel Generation does not reliably stop long-running jobs unless done immediately after the job starts.
  • Other output jobs are delayed due to queue blockage.

Cause

The legacy AEM Sites output generation workflow is not optimized for large DITAMAP files and lacks robust timeout or failure handling. Using the Delete and Create option during output generation further increases processing time and resource contention.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Avoid using the Delete and Create option when generating output. Instead, use the Overwrite content option or other recommended alternatives in AEM Guides documentation.

  2. If possible, temporarily increase infrastructure resources, such as memory or CPU, to better support large output generation workloads. Coordinate with your infrastructure team to assess and adjust resources as needed.

  3. Plan to migrate to the new AEM Sites output approach, which uses microservices and provides improved performance and reliability for supported output types (PDF, HTML5, JSON, and CUSTOM). The legacy AEM Sites output is not supported by microservices.

  4. If output generation is stuck in the Executingstate:

    1. Review the Author instance logs for errors or workflow failures during the period when the job was stuck.
    2. Check for lingering tracker nodes under /var/dxml/outputJobManager/ that may block retries of the same map and preset. Remove any stale nodes if found.
    3. Ensure the workflow component responsible for AEM Sites output generation (PublishWorkflowGenerationAEMSiteRenditionStep) is enabled and functioning.
  5. After making changes, re-initiate output generation and monitor the job status in the DITA map console.

  6. Verify that output generation completes within a reasonable timeframe and that subsequent jobs are not blocked.

recommendation-more-help
experience-cloud-kcs-help-kbarticles