-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would atom table dumping be useful for recon? #56
Comments
Actually someone at Klarna suggests trying this as well |
I've never really seen the use too much for it, but it could make sense to allow this functionality. If I had to build it though, I'd likely set it to return the N newest atoms in the table only (with maybe a type like |
Yeah, I technically haven't needed it, but figured since I put recon onto all my systems if I ever did need it recon would be the place for it. I guess the real issue is finding the end of the table. With 20 one could use the atom_count stat, then use the external term format trick. For pre-20, the function from the klarna blog post could be used. I'll probably tinker with it and send along a PR at some point. |
An alternative approach would be to do the standard binary/exponential search: |
See the second answer here
http://stackoverflow.com/questions/13480462/erlang-can-i-get-a-list-of-all-currently-registered-atoms
It's a neat trick which could of course break an any point, but I could imagine something which captured the current count, paused, then captured again helping out in the cases where you are programmatically creating atoms (or something is), and you don't know what.
Assumably, the system might first crash with full atom tables or something like that, they you start up with recon and see what's growing the table? At least that's a use-case I could imagine.
What do you think?
The text was updated successfully, but these errors were encountered: