Part 1
Written summary
- Chapter 1: The 3am Wakeup Call...--It is 3:47 on the Friday after Thanksgiving, and your phone is vibrating against the nightstand like an electric razor trapped in a glass of water.
- You SSH into the bastion host – three hops, because security.
- The re-index consumed the remaining heap, the garbage collector thrashed, and the cluster fell over exactly when traffic hit six times normal volume.The VP of Marketing wants a post-mortem by Monday.
Read along — the full text
Chapter 1: The 3am Wakeup Call...--It is 3:47 on the Friday after Thanksgiving, and your phone is vibrating against the nightstand like an electric razor trapped in a glass of water. You are already awake before your hand finds it, because a parent’s hindbrain knows the difference between a spam notification and the specific, dreadful rhythm of a PagerDuty alert. The screen reads: [CRITICAL] aem-production – publish cluster – 5xx error rate 12.7% for 4 minutes. Then another. [CRITICAL] aem-production – author cluster – replication queue depth > 10,000. Then another.[CRITICAL] aem-production – CDN origin – 504 timeout rate 8.2%.You open your laptop on the kitchen counter, not bothering with coffee, because adrenaline is a hell of a drug.
You SSH into the bastion host – three hops, because security. You run top. CPU is pegged. You run tail -f error.log, and the screen fills with OutOfMemoryError: Java heap space repeating every three seconds. You bounce the Author instance. Nothing. You bounce the Publish instance. The site comes back for ninety seconds, then dies again. By 5:00 AM, the VP of Marketing has texted your personal number – someone gave it to her after the Christmas outage two years ago. By 6:00 AM, the on-call developer has rolled back the last three deployments, and the site is finally stable. By 7:30 AM, you have identified the cause: a developer added a static HashMap cache to a singleton OSGi service, the cache grew without bounds over three weeks, and the deployment that pushed the fix also included a new index that required a full re-index.
The re-index consumed the remaining heap, the garbage collector thrashed, and the cluster fell over exactly when traffic hit six times normal volume.The VP of Marketing wants a post-mortem by Monday. The CTO wants to know why “the cloud” didn’t prevent this. The developer who wrote the cache is apologetic but confused: “It worked fine in staging for two weeks.” And you, the AEM operations lead, are updating your resume while pretending to eat a cold bagel.This is not a hypothetical. This is the lived experience of thousands of AEM operators who have spent the last decade building expertise in on‑premises and hybrid deployments. You know how to tune the Dispatcher.