[erlang-questions] How to introspect atom table?

Gleb Peregud <>
Tue Nov 20 12:52:09 CET 2012


Yes. 1048576 is 2^20 which seems to be a size of atom table (atom.h:30):

#define ATOM_LIMIT (1024*1024)

On Tue, Nov 20, 2012 at 12:47 PM, Max Lapshin <> wrote:
> Atoms: 1048576
> =memory
> total: 507885448
> processes: 336611825
> processes_used: 336601278
> system: 171273623
> atom: 52749265
> atom_used: 52707589
> binary: 6311816
> code: 3898230
> ets: 2209656
> =hash_table:atom_tab
> size: 411527
> used: 322545
> objs: 1048577
> depth: 21
>
>
> This looks like a problem, yes?
>
>
>
>
> On Tue, Nov 20, 2012 at 3:10 PM, Gleb Peregud <> wrote:
>>
>> AFAIK crash dump contains atom list.
>>
>> Also erlang:memory(atom) or erlang:memory(atom_used) can be useful
>>
>> On Tue, Nov 20, 2012 at 12:06 PM, Max Lapshin <>
>> wrote:
>> > Erlang system is crashing with atom limit.
>> > Is it possible to look inside atom table, maybe I'll see something like:
>> > 'user_15', 'user_157' and will quickly find source of problems.
>> >
>> > _______________________________________________
>> > erlang-questions mailing list
>> > 
>> > http://erlang.org/mailman/listinfo/erlang-questions
>> >
>
>



More information about the erlang-questions mailing list