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.
The top 3
- BEAM's Default Million-Process Capacity: The Erlang BEAM virtual machine is configured by default to support up to 1,048,576 simultaneously active processes, a limit that can be further increased at startup.
- Kilobyte Processes vs. Megabyte Threads: Each BEAM process is incredibly lightweight, typically starting with an initial memory footprint of only 2-3 KB, making it orders of magnitude more efficient than traditional OS threads which often require 1-2 MB.
- WhatsApp's Multi-Million Connection Servers: WhatsApp famously demonstrated BEAM's extreme scalability, with individual chat servers capable of handling over 2 million concurrent user connections, a key factor in its ability to serve billions of users with a small engineering team.
Sources
Open the full topic