AEM - Java Performance troubleshooting using built in CPU profiler
Description description
Environment
Adobe Experience Manager (versions 6.4 and 6.5)
Issue/Symptoms
Some server processes are really slow, but are not blocking.
The server OS shows high CPU utilization from the AEM java process.
Resolution resolution
Steps to Resolve
A simple CPU profiling tool is included in AEM 6.x.
- Open this URL: https://aem-host:port/system/console/profiler
- Expand Options.
- Set the Sample Interval (ms) or use the default.
- Set the Stack trace depth (recommended value: at least 50).
- Click Start Collecting.
- Wait 3-10 minutes to collect data while CPU utilization is high.
- Click Stop to collect the data (output is shown on the same page).
The profiler collects stack traces of running threads (threads actively taking CPU time). While collecting the stacks, it finds duplicate traces and sorts them from most common to least common.
Cause
There are many possible causes for high CPU utilization. Here are a few:
- Inefficient application code
- Traversal of large content structures
- High application memory utilization causing a lot of time spent in JVM Garbage Collection
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f