Tracing
- Trace BIFs. BEAM traces live: calls, messages and garbage collections observable on a running node.
- recon. The recon library makes production tracing safe: bounded, rate-limited inspection of live systems.
- dbg carefully. The dbg tracer is powerful and dangerous: unbounded traces have taken down what they observed.
Observer and Runtime Inspection
- observer. observer shows the node live: process tables, memory, supervision trees as pictures.
- Process inspection. process_info answers per process: mailbox depth, memory, stacktrace: the vital signs.
- Crash dumps. A dying node writes a crash dump: post-mortem state read with the viewer, cause named.
Diagnosing Live Systems
- Remote shells. A remote shell attaches to a live node: diagnosis in production without stopping it.
- Hot code awareness. BEAM loads new code into a running system: two versions live while processes migrate.
- The usual suspects. BEAM incidents are usually mailbox growth, ETS bloat or a restart storm: check those three first.
Before and after this level
- Before: Level 12: Networking: TCP and UDP, Protocol Processes, High-Concurrency Network Systems.
- Next: Level 14: Testing: EUnit and Common Test, Property-Based Testing Concepts, Testing Concurrent Systems.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Erlang Level 13: Debugging & Observability cover?
Tracing, Observer and Runtime Inspection, Diagnosing Live Systems: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 12: Networking, which covers TCP and UDP, Protocol Processes, High-Concurrency Network Systems.