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

Dramatic slowdown with some network activities like dns

    Details

    • Subcomponent:
    • Introduced In Version:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      1.8.0_60

      ADDITIONAL OS VERSION INFORMATION :
      10.10.5

      A DESCRIPTION OF THE PROBLEM :
      Addition information for bug JI-9023785

      Effectively when running on OS X Java 1.8.0_60 performs certain activities related to network functionality like jdbc communications and DNS operations very very slowly compared to the preceding version 1.8.0_51

      REGRESSION. Last worked in version 8u51

      ADDITIONAL REGRESSION INFORMATION:
      1.8.0_51

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run sample code provided against Java 1.8.0_60 and Java 1.8.0_51 on the OS X platform and compare the response times.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      1.8.0_51
      Iterration 1 current elapsed time 6
      Iterration 2 current elapsed time 6
      Iterration 3 current elapsed time 6
      Iterration 4 current elapsed time 6
      Iterration 5 current elapsed time 6
      Iterration 6 current elapsed time 6
      Iterration 7 current elapsed time 6
      Iterration 8 current elapsed time 7
      Iterration 9 current elapsed time 7
      Iterration 10 current elapsed time 7
      Iterration 11 current elapsed time 7
      Iterration 12 current elapsed time 7
      Iterration 13 current elapsed time 7
      Iterration 14 current elapsed time 7
      Iterration 15 current elapsed time 7
      Iterration 16 current elapsed time 7
      Iterration 17 current elapsed time 7
      Iterration 18 current elapsed time 7
      Iterration 19 current elapsed time 7
      Iterration 20 current elapsed time 7
      Iterration 21 current elapsed time 7
      Iterration 22 current elapsed time 7
      Iterration 23 current elapsed time 7
      Iterration 24 current elapsed time 7
      Iterration 25 current elapsed time 7
      Iterration 26 current elapsed time 7
      Iterration 27 current elapsed time 7
      Iterration 28 current elapsed time 7
      Iterration 29 current elapsed time 7
      Iterration 30 current elapsed time 7
      Iterration 31 current elapsed time 7
      Iterration 32 current elapsed time 7
      Iterration 33 current elapsed time 7
      Iterration 34 current elapsed time 7
      Iterration 35 current elapsed time 7
      Iterration 36 current elapsed time 7
      Iterration 37 current elapsed time 7
      Iterration 38 current elapsed time 7
      Iterration 39 current elapsed time 7
      Iterration 40 current elapsed time 7
      Iterration 41 current elapsed time 7
      Iterration 42 current elapsed time 7
      Iterration 43 current elapsed time 7
      Iterration 44 current elapsed time 7
      Iterration 45 current elapsed time 7
      Iterration 46 current elapsed time 7
      Iterration 47 current elapsed time 8
      Iterration 48 current elapsed time 8
      Iterration 49 current elapsed time 8
      Iterration 50 current elapsed time 8
      Iterration 51 current elapsed time 8
      Iterration 52 current elapsed time 8
      Iterration 53 current elapsed time 8
      Iterration 54 current elapsed time 8
      Iterration 55 current elapsed time 8
      Iterration 56 current elapsed time 8
      Iterration 57 current elapsed time 8
      Iterration 58 current elapsed time 8
      Iterration 59 current elapsed time 8
      Iterration 60 current elapsed time 8
      Iterration 61 current elapsed time 8
      Iterration 62 current elapsed time 8
      Iterration 63 current elapsed time 8
      Iterration 64 current elapsed time 8
      Iterration 65 current elapsed time 8
      Iterration 66 current elapsed time 8
      Iterration 67 current elapsed time 8
      Iterration 68 current elapsed time 8
      Iterration 69 current elapsed time 8
      Iterration 70 current elapsed time 8
      Iterration 71 current elapsed time 8
      Iterration 72 current elapsed time 8
      Iterration 73 current elapsed time 8
      Iterration 74 current elapsed time 8
      Iterration 75 current elapsed time 8
      Iterration 76 current elapsed time 8
      Iterration 77 current elapsed time 8
      Iterration 78 current elapsed time 8
      Iterration 79 current elapsed time 9
      Iterration 80 current elapsed time 9
      Iterration 81 current elapsed time 9
      Iterration 82 current elapsed time 9
      Iterration 83 current elapsed time 9
      Iterration 84 current elapsed time 9
      Iterration 85 current elapsed time 9
      Iterration 86 current elapsed time 9
      Iterration 87 current elapsed time 9
      Iterration 88 current elapsed time 9
      Iterration 89 current elapsed time 9
      Iterration 90 current elapsed time 9
      Iterration 91 current elapsed time 9
      Iterration 92 current elapsed time 9
      Iterration 93 current elapsed time 9
      Iterration 94 current elapsed time 9
      Iterration 95 current elapsed time 9
      Iterration 96 current elapsed time 9
      Iterration 97 current elapsed time 9
      Iterration 98 current elapsed time 9
      Iterration 99 current elapsed time 9
      Iterration 100 current elapsed time 9
      Total test elapsed time :9

      ACTUAL -
      1.8.0_60
      Iterration 1 current elapsed time 5027
      Iterration 2 current elapsed time 10097
      Iterration 3 current elapsed time 15163
      Iterration 4 current elapsed time 20233
      Iterration 5 current elapsed time 25253
      Iterration 6 current elapsed time 30313
      Iterration 7 current elapsed time 35316
      Iterration 8 current elapsed time 40380
      Iterration 9 current elapsed time 45446
      Iterration 10 current elapsed time 50488
      Iterration 11 current elapsed time 55546
      Iterration 12 current elapsed time 60595
      Iterration 13 current elapsed time 65618
      Iterration 14 current elapsed time 70691
      Iterration 15 current elapsed time 75764
      Iterration 16 current elapsed time 80836
      Iterration 17 current elapsed time 85889
      Iterration 18 current elapsed time 90961
      Iterration 19 current elapsed time 96010
      Iterration 20 current elapsed time 101079
      Iterration 21 current elapsed time 106095
      Iterration 22 current elapsed time 111166
      Iterration 23 current elapsed time 116170
      Iterration 24 current elapsed time 121244
      Iterration 25 current elapsed time 126316
      Iterration 26 current elapsed time 131388
      Iterration 27 current elapsed time 136449
      Iterration 28 current elapsed time 141521
      Iterration 29 current elapsed time 146588
      Iterration 30 current elapsed time 151662
      Iterration 31 current elapsed time 156732
      Iterration 32 current elapsed time 161804
      Iterration 33 current elapsed time 166876
      Iterration 34 current elapsed time 171919
      Iterration 35 current elapsed time 176962
      Iterration 36 current elapsed time 182028
      Iterration 37 current elapsed time 187095
      Iterration 38 current elapsed time 192151
      Iterration 39 current elapsed time 197207
      Iterration 40 current elapsed time 202279
      Iterration 41 current elapsed time 207341
      Iterration 42 current elapsed time 212416
      Iterration 43 current elapsed time 217490
      Iterration 44 current elapsed time 222565
      Iterration 45 current elapsed time 227579
      Iterration 46 current elapsed time 232589
      Iterration 47 current elapsed time 237595
      Iterration 48 current elapsed time 242600
      Iterration 49 current elapsed time 247613
      Iterration 50 current elapsed time 252683
      Iterration 51 current elapsed time 257693
      Iterration 52 current elapsed time 262710
      Iterration 53 current elapsed time 267720
      Iterration 54 current elapsed time 272790
      Iterration 55 current elapsed time 277830
      Iterration 56 current elapsed time 282903
      Iterration 57 current elapsed time 287976
      Iterration 58 current elapsed time 293031
      Iterration 59 current elapsed time 298084
      Iterration 60 current elapsed time 303129
      Iterration 61 current elapsed time 308201
      Iterration 62 current elapsed time 313267
      Iterration 63 current elapsed time 318331
      Iterration 64 current elapsed time 323379
      Iterration 65 current elapsed time 328412
      Iterration 66 current elapsed time 333487
      Iterration 67 current elapsed time 338552
      Iterration 68 current elapsed time 343591
      Iterration 69 current elapsed time 348645
      Iterration 70 current elapsed time 353700
      Iterration 71 current elapsed time 358733
      Iterration 72 current elapsed time 363809
      Iterration 73 current elapsed time 368859
      Iterration 74 current elapsed time 373875
      Iterration 75 current elapsed time 378941
      Iterration 76 current elapsed time 384008
      Iterration 77 current elapsed time 389075
      Iterration 78 current elapsed time 394084
      Iterration 79 current elapsed time 399110
      Iterration 80 current elapsed time 404184
      Iterration 81 current elapsed time 409215
      Iterration 82 current elapsed time 414283
      Iterration 83 current elapsed time 419299
      Iterration 84 current elapsed time 424349
      Iterration 85 current elapsed time 429421
      Iterration 86 current elapsed time 434489
      Iterration 87 current elapsed time 439539
      Iterration 88 current elapsed time 444614
      Iterration 89 current elapsed time 449685
      Iterration 90 current elapsed time 454756
      Iterration 91 current elapsed time 459807
      Iterration 92 current elapsed time 464834
      Iterration 93 current elapsed time 469901
      Iterration 94 current elapsed time 474968
      Iterration 95 current elapsed time 480037
      Iterration 96 current elapsed time 485040
      Iterration 97 current elapsed time 490115
      Iterration 98 current elapsed time 495121
      Iterration 99 current elapsed time 500147
      Iterration 100 current elapsed time 505220
      Total test elapsed time :505220

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.net.InetAddress;
      import java.net.UnknownHostException;

      public class NameLookUP {

      public static void main(String[] args)
      {
      // TODO Auto-generated method stub

      String version = System.getProperty("java.version");
      System.out.println(version);

      Long start = System.currentTimeMillis();


      for (int x=1;x<=100;x++)
      try
      {

      InetAddress.getLocalHost().getHostName();
      Long currentElapsed = System.currentTimeMillis() - start;
      System.out.println("Iterration "+String.valueOf(x)+" current elapsed time "+String.valueOf(currentElapsed));

      } catch (UnknownHostException e)
      {
      // TODO Auto-generated catch block
      e.printStackTrace();
      }

      Long finish = System.currentTimeMillis();

      Long elapsed = finish - start;

      System.out.println("Total test elapsed time :"+elapsed.toString());
      }

      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Revert to previous idk 1.8.0_51

        Attachments

        1. 8u51_output.txt
          4 kB
        2. 8u60_output.txt
          4 kB
        3. 9ea_output.txt
          4 kB
        4. ifconfig.txt
          3 kB
        5. MailToSubmitter_9063312.txt
          13 kB
        6. NameLookUP_SingleRun.java
          0.6 kB
        7. NameLookUP_UserProvidedTC.java
          0.8 kB
        8. Output On single run-Allversions.txt
          0.1 kB

          Issue Links

            Activity

              People

              • Assignee:
                robm Robert Mckenna
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: