Troubleshooting high CPU usage and connection disruptions on AEM Managed Services Publish instances
This article explains how to identify and address high CPU usage and temporary connection disruptions on Adobe Experience Manager (AEM) Managed Services Publish instances, often caused by frequent garbage collection events.
Description description
High CPU usage on AEM Publish instances can lead to temporary connection disruptions, affecting the availability of your AEM environment. This issue may occur even without a corresponding increase in external traffic. By analyzing log files and JVM behavior, you can determine if frequent garbage collection (GC) events are causing application threads to pause, resulting in stalled request processing and connection interruptions.
Environment
Adobe Experience Manager (AEM) Managed Services, Production environment
Symptoms
- Sudden spike in CPU usage on one or more AEM Publish instances
- Temporary loss of connectivity or delayed responses from Publish instances
- Request logs show a sharp increase in concurrent processing count.
- No significant increase in external traffic during the incident
Cause
Frequent garbage collection events with long “Stop The World” pauses can halt application threads, causing requests to accumulate and leading to temporary connection disruptions.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the request logs for affected Publish instances to identify periods of unusually high concurrent processing counts.
-
Check external traffic metrics (such as load balancer or web server logs) to confirm whether the spike is due to internal processing or actual increases in incoming requests.
-
Analyze the garbage collection logs for frequent or prolonged garbage collection events, especially those with long “Stop The World” pauses (several seconds or more).
-
If frequent GC pauses are occur:
a. Review JVM heap usage and memory allocation patterns.
b. Consider tuning JVM heap settings, such as increasing the heap size or adjusting GC parameters, to reduce the frequency and duration of GC pauses.
c. Optimize application code or scheduled jobs that may be causing excessive memory usage or thread contention.
-
Set up monitoring and alerting for abnormal increases in concurrent processing counts or GC pause durations, so you can proactively address similar issues in the future.
-
After making changes, monitor the environment to verify that CPU usage and connection stability have improved.