Memory Efficiency: Up to 10,000x Smaller Footprint

Each BEAM process consumes significantly less memory – often thousands of times less – than a typical OS thread, allowing for an incredibly higher density of concurrent operations on the same hardware.

The top 3

  1. BEAM Processes vs. OS Threads: Memory Footprint Showdown: A minimal BEAM process typically uses ~2-3 KB, whereas an OS thread (like those in Java) often consumes 1-2 MB of memory for its stack, making BEAM processes up to 1000x lighter.
  2. Minimalist Design: How Tiny is a BEAM Process?: A newly spawned Erlang process on the BEAM virtual machine can start with as little as ~309 words of memory (around 1.2KB on a 32-bit system or 2.6KB on a 64-bit system), including a default initial heap of 233 words, which dynamically grows as needed.
  3. Telecom Roots: Why BEAM Engineered Tiny Processes: The BEAM virtual machine's design, with its emphasis on extremely lightweight and isolated processes, originated from Ericsson's stringent requirements in the 1990s for building highly reliable, fault-tolerant telecommunication systems capable of handling massive concurrent traffic with constrained hardware resources.

Sources

Open the full topic