Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2739

Creation of JChannel is slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.3.1, 5.2.20
    • None
    • None
    • False
    • None
    • False

      From https://github.com/belaban/JGroups/discussions/725#discussioncomment-7388708:

      I can confirm this issue. Starting with version 5.2.0 the instantiation time for a JChannel grew from <1s to 12s. In our stack configuration we have all bind_addr and other address related fields explicitly set, but nevertheless a call to Util.getNonLoopbackAddress is performed in Configrator.setDefaultAddressValues. This call seems to be slow with certain network configurations on some machines.
      It didn't hurt much in versions prior to 5.2.0, because Util.getNonLoopbackAddress was called only once for the whole stack, but now it is called once for each protocol in the stack, even if the particular protocol does not have any address related fields. I think a lazy computation of the non-loopback address only when needed, including caching, would speed this up significantly.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: