AEM author instance unavailable due to OutOfMemoryError and automatic restart

This article explains how to identify, troubleshoot, and resolve situations where an Adobe Experience Manager (AEM) author instance becomes unavailable due to memory exhaustion, resulting in OutOfMemoryError exceptions and automatic service restarts.

Description description

Environment

Adobe Experience Manager (AEM) author instance

Symptoms

  • The AEM author instance becomes inaccessible, preventing users from authoring pages and assets.

  • Users may encounter an error page (such as error.html) when attempting to access the author URL.

  • Attempts to log in via the standard author URL or SSO may fail.

  • Error logs contain messages such as:

    • java.lang.OutOfMemoryError: Java heap space
    • java.lang.OutOfMemoryError: GC Overhead limit exceeded
    • java.lang.OutOfMemoryError: Metaspace
  • Monitoring solutions may show high transaction times for job queue processing.

Cause

The AEM author instance becomes unavailable due to Java memory exhaustion, resulting in OutOfMemoryError exceptions. High job queue activity can contribute to increased memory usage and service instability. Automatic service restarts may temporarily resolve the outage.

Resolution resolution

To fix AEM author instance unavailability caused by OutOfMemoryError exceptions, follow these steps:

  1. Verify service status:

    • Attempt to access the AEM author instance using both the standard DNS URL and, if available, the direct IP URL.
    • Confirm whether users can log in and access authoring features.
  2. Check the AEM error.log file for memory-related errors such as java.lang.OutOfMemoryError, GC Overhead limit exceeded, or Metaspace.

  3. Check monitoring solutions (if available):

    • Use your organization’s monitoring tools to identify high-latency transactions or resource bottlenecks, especially related to job queue processing.
    • If monitoring tools are not available, focus on log analysis for signs of resource exhaustion.
  4. Validate automatic recovery:

    • If the AEM services have automatically restarted, verify that the environment is stable and accessible.
    • Monitor for recurring issues after the restart.
  5. Collect additional information (if unresolved):

    • Gather exact error messages or screenshots from affected users.
    • Attempt to log in using a private or incognito browser window to rule out SSO or caching issues.
  6. Take preventive actions:

    • Review and optimize job queue configurations to reduce memory pressure.
    • Consider tuning Java heap and Metaspace settings according to your deployment’s requirements.
    • Regularly monitor memory usage and job queue activity to proactively address potential issues.

Verification

Confirm that users can access the AEM author instance and perform authoring tasks without encountering errors. Continue monitoring logs and system health for signs of recurring memory issues.

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