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

Very Slow plugin performance even with ip address connects

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      Customer using Java Plugin for Windows 1.2.2 and from the applet,
      accessing a servlet (entire sample code is attached). Plugin 1.1.x does
      not have this problem.

      Java plugin performance is very slow when you open a URL connection (or
      a socket) back to the host from which applet came. With snoop, we can find
      that plugin is trying to make name resolution queries.

      But since IP addresses are used everywhere, there should no need for
      plugin to lookup the name. For a demonstration, please visit following
      URL.
      http://203.116.231.10:4048/httptest_desmond/testhttp1.html

      (You will have to grant socket permissions to above host).

      You will see that at the point of opening the http connection in server (code
      is attached in attachments) the applet freezes. It resumes after approx. 5
      seconds as seen from snoop traces.

      Also, if you put an entry in the 'hosts' file on the window machine such as
      203.116.231.10 any-junk.Junk.COM
      the performance is dramatically improved. Note that the hostname in the above
      entry does not have to be correct, any dummy name will do. Therefore there
      is reason to believe that plugin is doing an unnecessary name resolution and
      that is degrading the performance to unacceptable level.

      In the intranet, the problem is easy to reproduce if you have DNS turned OFF.
      On the internet however the problem comes up with DNS on also.

      Attachments

        Issue Links

          Activity

            People

              duke J. Duke
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: