Non-FictionInformativeEducational

Experience Manager Technical Support Engineer eBook

A Coursebook on Experience Manager Technical Suppo

by Rauch Zachery

  • English
  • 156 pages
  • 2026
  • SamEnrico

A Coursebook on Experience Manager Technical Support Engineer

Formats

Free sample

Chapter 1: The Repository Beneath...--The first time you see an AEM repository crash, you will not see fire, smoke, or a dramatic error message. You will see a single line in a log file that says something innocent like Segment Not Found Exception or Unable to read node at path /content/we-retail/us/en. The system will still be running. The login page will still load. Your monitoring dashboard will show green checks across every service.

And yet, half the pages on the site will return blank white screens, and the other half will show content from three months ago.This is the unique terror of the Jackrabbit Oak repository. Unlike a relational database that fails loudly with connection refused errors, or a file system that returns clear "file not found" messages, Oak fails softly, gradually, and deceptively. It is a bit like a hotel that continues to accept reservations even after half its rooms have collapsed—the front desk smiles, the key cards work, but when guests open their doors, they find only rubble.Your job as an Experience Manager Support Engineer begins here: not with fixing the repository, but with recognizing that the repository is the problem in the first place. Most AEM outages are not AEM's fault. They are networking, or memory leaks, or misconfigured dispatchers.

But the outages that make you question your career choice, the ones that wake you up at 3 AM and keep you staring at logs until dawn, those are almost always repository problems. This chapter will teach you to see them coming, survive them when they arrive, and—most importantly—know exactly which commands to run when everyone else is still panicking.The Hidden Engine: Why AEM Isn't Just Another Web Application Before we debug the repository, you need to understand why AEM uses a repository at all. When you build a standard web application in PHP, Node.js, or Ruby on Rails, you typically separate three concerns: the code (files on disk), the content (a relational database like Postgre SQL), and the cache (Redis or Memcached). Each layer has its own failure modes, but they are mostly independent. A database outage does not corrupt your code.

A cache flush does not delete your database rows.AEM collapses all three layers into one system. The Java Content Repository, implemented by Apache Jackrabbit Oak, stores everything: your HTML templates (in /apps), your marketing content (in /content), your user profiles (in /home/users), your configuration files (in /conf), and even the indexes that make searching fast. When the repository breathes, AEM breathes. When the repository coughs, AEM flatlines.This architectural choice was not madness. It solved a real problem that traditional web applications struggle with: unstructured, evolving content.

Relational databases require schemas. If you want to add a new field to a page type, you must run a migration. If you want to store a completely new kind of component, you must alter tables. AEM, by contrast, stores everything as nodes and properties in a tree structure. A page is a node.

Its child components are child nodes. A new field is simply a new property. No migrations. No downtime. Just pure, flexible, terrifying freedom.The cost of that freedom is fragmentation.

Over months and years of content authoring, deployments, and workflow executions, the repository accumulates cruft. Orphaned nodes that no parent points to. Binary blobs that were uploaded, published, deleted, but never purged from the data store. Indexes that were built for a version of the code that no longer exists. The Oak repository is remarkably resilient—it can run for years with silent corruption—but eventually, like a bridge that was designed to hold ten tons carrying twenty, it will fail.

This chapter teaches you to be the engineer who notices the cracks before the collapse.Segment MK vs. Document MK: Choosing Your Poison AEM runs on one of two storage backends. Understanding which one you have is the first step to debugging it, because each fails in completely different ways.Segment MK is the older, simpler, and more common backend. It stores data in files on disk, in a format called "segments." Each segment is a 256KB or 1MB file (depending on Oak version) that contains a collection of nodes, properties, or binary references. Segments are append-only: when you modify a node, Oak writes a new version of that node to a new segment and leaves the old segment untouched.

This design makes crash recovery possible—if AEM dies mid-write, the old data is still intact. But it also means that the repository grows constantly, even when you delete content. Deletion just marks nodes as invisible; the bytes remain on disk until a background process called "revision garbage collection" sweeps them away.Segment MK fails in two characteristic ways. The first is segment corruption: a segment file becomes unreadable due to a disk error, a torn write, or a bug in Oak itself. When this happens, you see Segment Not Found Exception in the logs.

The second is repository bloat: the data store grows to fill the disk because revision garbage collection never runs or cannot keep up with the rate of changes. When this happens, you see Disk full errors, but more commonly, you see performance degrade gradually over weeks as the repository becomes too large to fit in the OS page cache.Document MK is the newer, clustered backend. It stores data in a document database like Mongo DB or a relational database like Postgre SQL. Instead of segments, Document MK stores each node as a document (or row) with a complex key that includes the node path and a revision timestamp. This design allows multiple AEM instances to write to the same repository simultaneously—essential for AEM's clustered author deployment.Document MK fails in ways that Segment MK never does.

Because it relies on an external database, you can see connection pool exhaustion, slow queries due to missing database indexes, and consistency issues when the database's own replication lag causes different AEM instances to see different versions of the same node. The most terrifying Document MK failure is split-brain: when a network partition separates the AEM cluster from the database, or separates database replicas from each other, and both sides continue accepting writes. Recovering from this requires database expertise that most AEM engineers do not have.How to identify which you have: Check your sling.properties file or look at the repository.home directory. If you see .segment files, you are on Segment MK. If you see Mongo DB connection strings or JDBC URLs, you are on Document MK.

If you are on AEM as a Cloud Service, you are on a heavily modified version of Document MK that Adobe manages for you—see Chapter 7 for the cloud-specific implications.The Three Silent Killers: Drift, Ghosts, and Traversal Most repository problems fall into three categories. Learn to recognize them, and you will diagnose 80% of repository-related outages before you have to call Adobe support.Repository Drift occurs when the in-memory representation of the repository diverges from the data on disk. This is not supposed to happen—Oak has a full checkpoint and journal system to prevent it—but bugs in Oak or hardware…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

A Coursebook on Experience Manager Technical Support Engineer

Details

Author
Rauch Zachery
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Informative, Educational
Released
2026-05-08
Pages (approx.)
156
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Rauch Zachery

See all

You may also like

See all