Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7039343

Performance Downgrade:NetworkInterface.getNetworkInterface() takes 100x longer in JDK 7

XMLWordPrintable

    • x86
    • windows_vista

      J2SE Version (please include all output from java -version flag):

      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b139)
      Java HotSpot(TM) Client VM (build 21.0-b09, mixed mode, sharing)

      Does this problem occur on J2SE 1.4.x, 1.5 or 6? Yes / No (pick one)
      No


      Operating System Configuration Information (be specific):
      Windows Vista Business SP2

      Hardware Configuration Information (be specific):
      HP Pavillion dv9000
      Windows Vista Business SP2 32 bit
      3 GB RAM
      Intel Core 2 Duo T9300



      Bug Description:

      Call to java.net.NetworkInterface.getNetworkInterfaces() takes around 100 times longer in Java 7

      Had never tried this call with Java 7 before and do not know when this first
      started occuring.

      Have
       often wondered why this machine comes up with over 800 interfaces...
      obviously most of them are not
       real. They come up with toString values
      like "name:net751 (6TO4 Adapter) index: 767 addresses:".

      Ever since first tried this call (years ago) this laptop has always
      given a huge amount of interfaces;
       odd!!

      Steps to Reproduce (be specific):

      Run attached test program

      Using Test6 run configuration
      -----------------------------
      Property 1: 1.6.0_24
      Property 2: 1.6.0_24-b07
      Property 3: Windows Vista
      Property 4: x86
      Property 5: 6.0
      Property 5: Service Pack 2
      Getting interfaces 13:24:57
      Got interfaces 13:24:58
      Found 811 interfaces 13:24:58
      Done 13:24:58
      Elased time: 0.778

      Using Test7 run configuration
      -----------------------------
      Property 1: 1.7.0-ea
      Property 2: 1.7.0-ea-b139
      Property 3: Windows Vista
      Property 4: x86
      Property 5: 6.0
      Property 5: Service Pack 2
      Getting interfaces 13:25:18
      Got interfaces 13:26:47
      Found 811 interfaces 13:26:47
      Done 13:26:47
      Elased time: 89.285

            chegar Chris Hegarty
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: