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

Net Performance: Need plug-in parameter to omit page directory from classpath

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0, 1.3.1_07
    • deploy
    • generic, sparc
    • generic, solaris_8



      Name: skT88420 Date: 06/02/99


      There needs to be a way to specify to the plug-in 1.2.1 class/resource loader
      that ALL files it needs are in the jars, and it should not look in the applet
      page directory for files. Applet performance suffers dramatically because it
      is trying to load resources (and classes loaded by Class.forName) by looking
      for the files under the http directory containing the web page. Below is a
      transcript from the console showing the number of network connections it tries
      for just ONE resource file: 28 connections! All known not to exist. Multiply
      this by the number of resources and Class.forName calls, and by the network
      delay. This adds up very quickly and can be problematic even on a local LAN
      when the network is conjested or the server is busy, let alone an intranet or
      internet where network latency can be a much larger factor.

      (Note 1: I know I could reduce this a little by specifying property files for
      _en_US, but I'd like this applet to be usable internationally without
      specifying property files for every possible locale, and international users
      will suffer even more to have to wait for all these network connections.
      By specifying that all files are in the jar, it will try all the file names
      against the jars it has just downloaded and not bother the network.)

      (Note 2: Note that the "no proxy" and "with cookie" requests are repeated
      several times for the same file. Fixing this would help some, but I'd like a
      parameter to OBJECT or EMBED that will tell the plug-in NEVER to make these
      requests, as all files it needs are to be found in the jars.)

      Thanks!


      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      with cookie "PAGESELECTION=webhacks; o:visit=2".
      No holding
      CacheHandler trying caching.
      http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      CacheHandler file name: null
      No cache available, using remote copy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.properties no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.properties
      with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class
      no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      No holding
      CacheHandler trying caching. http://...URL of page directory.../...resource packagename path.../ResourceName_en.class
      CacheHandler file name: null
      No cache available, using remote copy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.properties no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.properties with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      No holding
      CacheHandler trying caching. http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class
      CacheHandler file name: null
      No cache available, using remote copy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.properties no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en_US.properties with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      No holding
      CacheHandler trying caching. http://...URL of page directory.../...resource packagename path.../ResourceName_en.class
      CacheHandler file name: null
      No cache available, using remote copy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.properties no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName_en.properties with cookie "PAGESELECTION=webhacks; o:visit=2".
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      No holding
      CacheHandler trying caching. http://...URL of page directory.../...resource packagename path.../ResourceName.class
      CacheHandler file name: null
      No cache available, using remote copy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName.class no proxy
      Opening http://...URL of page directory.../...resource packagename path.../ResourceName.class with cookie "PAGESELECTION=webhacks; o:visit=2".
      (Review ID: 83830)
      ======================================================================

            mafishersunw Margarita Fisher (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: