AEM LTS SP1 high memory usage at idle on Linux
This article explains why high memory usage may be observed on Adobe Experience Manager LTS SP1 environments running on Linux, even when the system is idle, and provides guidance on interpreting and managing this behavior.
Description description
Environment
- Adobe Experience Manager (AEM) 6.5 LTS SP1 (Forms OSGi)
- Linux operating system (for example, Red Hat Enterprise Linux 9.8)
- 20 GB RAM
- Virtualized platform (for example, VMware)
Issue/Symptoms
-
Consistently high memory usage (80–84%) is reported on the Linux server running AEM LTS SP1, even when there is no activity.
-
Memory usage remains high whenever the server is checked, regardless of workload.
-
Example server statistics at idle:
- Free: 0.45 GB (2%), Used: 18.79 GB (98%), Total: 19.24 GB
- Swap: Free: 1.62 GB (81%), Used: 0.37 GB (19%), Total: 2.00 GB
- CPU usage: 1% average over four cores
-
JVM options include:
-Xms10240m -Xmx10240m -XX:MaxMetaspaceSize=1024M -XX:+UseG1GC -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<heapdump-path> -
No errors, timeouts, or service failures are reported during idle periods.
Cause
High memory usage at idle is expected behavior when the JVM is configured with large heap allocations. Linux reports all reserved heap memory as used even if the application is not actively consuming it. This does not indicate a memory leak or malfunction if the system is otherwise stable.
Resolution resolution
Follow the steps below to resolve the issue or confirm expected behavior:
- Understand that the JVM is configured to reserve a large heap (for example, 10 GB) at startup, which Linux counts as used memory, even if not all of it is actively in use.
- Review JVM and system memory utilization using monitoring tools such as JMX or AEM monitoring tools to check actual heap usage versus the allocated maximum.
- Confirm that minimal swap usage and stable system operation indicate no memory pressure or leaks.
- Keep the current JVM heap settings if the application is stable and no memory-related errors are observed.
- Consider reducing the
-Xmxvalue if actual heap usage is much lower than the maximum to free up system memory for other uses. - Continue monitoring swap usage and system stability, especially under load.
If the system remains stable, with no out-of-memory errors or swap thrashing, high memory usage as reported by Linux is expected and not a cause for concern.