Diagnosing and optimizing replication queue delays in Adobe Experience Manager
Adobe Experience Manager (AEM) replication queues may remain delayed or blocked because of Publish or receiver bottlenecks, suboptimal batching, permission issues, or resource contention between multiple agents. To resolve the issue, review queue health and replication settings, optimize high-volume publishing and system resources, and collect diagnostics for persistent delays.
Description description
Environment
Adobe Experience Manager (AEM), all supported on-premises versions
Issue/Symptoms
- Replication queues remain in Active or Blocked state for extended periods.
- Queue length increases and doesn’t drain as expected after bulk publishing.
- Replication processing is delayed, especially when multiple replication agents are configured.
Root cause
Replication queue delays are typically caused by bottlenecks in the Publish or receiver tier, suboptimal batching, permission issues, or resource contention among multiple agents. There is no fixed queue-length threshold that triggers delays; performance depends on system health, configuration, and workload characteristics.
Resolution resolution
Follow the steps below to resolve the issue:
-
Monitor replication queue health:
- In AEM, go to Tools
>Deployment>Replication>Agents on Author and check the status of each replication queue. - Healthy queues are usually in
IdleorActivestate.Blockedor continuously growing queues indicate issues, often on the Publish or receiver side.
- In AEM, go to Tools
-
Optimize replication agent settings:
- Enable Batch Mode in the agent’s Batch tab to bundle multiple items into a single request.
- Adjust Max Wait Time (default:
2 seconds) and Trigger Size for optimal batching. - Set Retry Delay in the Settings tab (default:
60000 ms) to control retry timing for failed items. - Each agent processes its queue serially. Batching and healthy receivers improve throughput more than adding parallel agents.
-
Tune high-volume publishing:
- Publish content in smaller batches to avoid overloading the queue.
- Monitor Publish instance CPU, JVM heap/GC, and I/O because queue processing depends on the Publish tier’s ability to import content.
- Ensure that the replication account has write permissions to target paths such as
/content,/conf, and/etc. - Verify that the required Oak indexes exist to support import operations.
- Schedule large publishing jobs during off-peak hours to reduce resource contention.
-
Manage multiple replication agents:
- Each replication agent has its own queue, processed as Sling jobs that share the same job-processing resources.
- Use path-partitioned, non-overlapping agents with sufficient hardware resources to improve throughput.
- There is no documented setting to directly tune the replication processing thread count. Use agent-level batch settings and limit Sling Job Queue Maximum Parallel Jobs to about
50%of the available CPU cores.
-
Review JVM and system configuration:
- Measure JVM memory usage and review garbage collection logs before making changes.
- Limit Sling Job Queue Maximum Parallel Jobs to approximately half the number of CPU cores.
- For asset-heavy workloads, ensure adequate heap size (minimum
16GBrecommended) and use separate disks for the segment store, datastore, and index.
-
For persistent delays, collect diagnostics:
- Collect thread dumps from the Author and Publish instances during the delay window three times, a few seconds apart.
- Collect
replication.loganderror.logfor the same period. - Capture queue snapshots from the Replication UI or from
/etc/replication/agents.author//jcr:content.queue.json.
-
After making the changes, monitor the replication queue and verify that items are processing and the queue length decreases as expected.