Our website uses cookies.
Reject AllAllow all

This website stores cookies on your computer. The data is used to collect information about how you interact with our website and allow us to remember you. We use this information to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.

Atom exhaustion

Recently I've stumbled upon problem with atom exhautiion limit in Erlang memory.

New atoms are added to atoms table stored in memory which is not cleaned by garbage collector and this may lead to exceeding defined limit, which by default is set to 1_048_576.

How to deal with this?

Instead of using String.toatom/1 use String.toexisting_atom/1.

Did you find the article interesting and helpful? Take a look at our Elixir page to find out more!

➡️ Hello! We are Appunite

language #phoenix #programming #framework