CASE 13 / OBSERVABILITY / PERFORMANCE / SUPPORT
AEM Production Troubleshooting: Trace Slow Requests Across the Platform
A slow AEM page can originate in delivery, application code, repository access or an external service. This representative diagnostic method follows a request across those boundaries, distinguishes evidence from assumptions and defines how to validate a proposed correction.
Engineering path
Engineering path
Proposed engineering sequence
- 01User symptom
- 02Delivery evidence
- 03Runtime evidence
- 04Hypothesis
- 05Controlled check
- 06Recovery review
01 / Context
Start with a reproducible request and a time window
- PLATFORM
- AEM / Dispatcher
- SCOPE
- AEM production request diagnostics
- TYPE
- Representative engineering scenario
Record the URL, relevant request context, access state and observed failure. Preserve a consistent time window across logs and monitoring so unrelated events are not mistaken for a causal chain.
02 / THE ENGINEERING PROBLEM
The visible symptom may be downstream of the cause
An edge timeout does not establish whether Publish, a repository query or a remote dependency caused the delay. Likewise, a cache miss is evidence about delivery behavior, not proof that caching is the root cause.
03 / CONSTRAINTS
Boundaries the design must preserve
- Correlate the same request context and time window before assigning causality.
- Keep diagnostic collection bounded and authorized.
04 / ARCHITECTURE
Map the actual request path before following it
Use Browser → CDN → Load Balancer → Apache → Dispatcher → AEM Publish as a starting delivery map, then inspect Sling, OSGi, JCR and external services as the request requires. This is a diagnostic model, not a claim that every request traverses each dependency serially.
System boundaries
Owns diagnosis and hypothesis validation, not cache-rule design or a monitoring vendor tutorial.
AEM production request diagnostics
- User symptom
- Delivery evidence
- Runtime evidence
- Hypothesis
- Controlled check
- Recovery review
05 / IMPLEMENTATION
Form a hypothesis at each boundary
Compare correlated timings and logs, service availability and repository or API activity. Collect JVM evidence under the operational procedures appropriate to the environment, avoiding disruptive diagnostics or unbounded logging during an incident.
Implementation checkpoints
Proposed engineering checks for this scenario.
- 01Compare cached and controlled origin paths where access is authorized.
- 02Separate upstream waiting from application execution time.
- 03Record deployment and configuration changes near the observed onset.
06 / TECHNICAL DECISIONS
Change one supported hypothesis at a time
Write down the suspected failing boundary, the evidence and the expected observation after a correction. Avoid mixing a cache change, service refactor and runtime adjustment into an untraceable intervention.
07 / TRADEOFFS
More diagnostics can create additional load or exposure
Detailed logging and runtime captures can affect the system and contain sensitive information. Choose the smallest useful observation, limit its duration and follow access and retention procedures.
| Risk | Impact | Mitigation to validate |
|---|---|---|
| Uncorrelated signals | The wrong layer is blamed | Align request identity, timings and deployment changes |
| Disruptive diagnostics | Investigation adds load or exposes data | Collect the smallest useful capture under retention/access rules |
If evidence identifies a cache-policy defect, continue with cache eligibility, query parameters and freshness.
08 / VALIDATION
Re-run the failing scenario and check for displaced failures
A successful retry alone is not enough to establish recovery.
Acceptance scope and limits
TO VALIDATE
Proposed checks, not captured results.
- Compare the same request and access state after the change.
- Inspect error rates, service health and dependency behavior in the same window.
- Check adjacent requests and document unresolved hypotheses for follow-up.
DOES NOT CLAIM
Owns diagnosis and hypothesis validation, not cache-rule design or a monitoring vendor tutorial.
- A completed customer deployment or measured production outcome
- A passing test run without retained execution evidence
09 / LESSONS LEARNED
Share the reasoning, not just the fix
A useful incident review explains which evidence supported the conclusion and which alternatives were ruled out. That makes the diagnosis reusable in code reviews, mentoring and future production investigations.
Technical references
These sources document product behavior. The scenario and proposed validation are engineering interpretations, not vendor claims or execution evidence.