Can I get a list of all currently-registered atoms?

前端 未结 4 1203
梦如初夏
梦如初夏 2021-01-11 10:07

My project has blown through the max 1M atoms, we\'ve cranked up the limit, but I need to apply some sanity to the code that people are submitting with regard to list_to_ato

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-11 10:53

    I'm not sure if there's a way to do it on a live system, but if you can run it in a test environment you should be able to get a list via crash dump. The atom table is near the end of the crash dump format. You can create a crash dump via erlang:halt/1, but that will bring down the whole runtime system.

提交回复
热议问题