I'm experiencing issues related to OSPF (which relies on Multicast) not allowing us to work with enough adjacencies and was told to look at: /proc/sys/net/ipv4/igmp_max_memberships
Now, while it's easy to just increase this number to infinity, is there a way to know how many IGMP memberships are currently held by the OS so I can ensure this is indeed the problem and what number should be used?
Yes, there is a way:
It should print out all the IGMP groups currently in use by the machine:
or for numeric only output:
netstat -ng