BEAM's Million-Process Concurrency Record

The BEAM virtual machine is engineered to support an exceptionally high number of concurrent processes, with a default maximum of 1,048,576 simultaneously active Erlang processes on a single node, a limit configurable at startup. Real-world applications like WhatsApp leverage this, handling over a million concurrent connections per server.

The top 3

  1. BEAM's Process Record: Millions on a Single VM: Erlang's BEAM VM can concurrently manage over a million processes by default, with an initial memory footprint of just 2-3 KB per process, enabling systems like WhatsApp to handle 2 million TCP/IP connections on a single instance.
  2. Erlang's Concurrency Genesis: Built for Millions Since the 80s: Conceived in the late 1980s at Ericsson for robust telecom systems, Erlang's BEAM VM was engineered from the outset to manage hundreds of thousands, if not millions, of concurrent processes with fault tolerance, a foundational design principle.
  3. Memory Footprint: BEAM Processes vs. OS Threads: Erlang processes on BEAM are incredibly lightweight, typically starting at 2-3 KB, making them 500-1000 times smaller than traditional OS threads which often consume 1-2 MB of memory.

Sources

Open the full topic