[erlang-questions] Listing differences in loaded beam files

Ahmed Omar <>
Wed Oct 19 12:31:39 CEST 2011


Maybe these two functions could be useful ?
beam_lib:cmp/2
http://www.erlang.org/doc/man/beam_lib.html#cmp-2
beam_lib:cmp_dirs/2
http://www.erlang.org/doc/man/beam_lib.html#cmp_dirs-2



On Tue, Oct 18, 2011 at 5:36 AM, Paul Davis <>wrote:

> I hit an odd issue earlier today and one of the debugging questions I
> tried to answer was "Do these two nodes have the same exact BEAM files
> loaded, and if not, what's different?" After Googling for awhile I
> haven't found anything related. Ideally I'm only looking for something
> that basically does:
>
>    Mods1 = [{Module, beam_lib:version(Module)} || Module <-
> all_modules_on_node(N1)],
>    Mods2 = [{Module, beam_lib:version(Module)} || Module <-
> all_modules_on_node(N2)],
>    diff(Mods1, Mods2).
>
> But with bonus points if it shows some sort of N-way diff for all
> nodes that are connected.
>
> Any hints or suggestions would be appreciated.
>
> Thanks,
> Paul J. Davis
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111019/8c92f458/attachment.html>


More information about the erlang-questions mailing list