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

the memory footprint of a java applet grows without bound when reloaded in IE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.0, 1.4.2
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      generic, windows_2000

      Description

      Name: gm110360 Date: 03/10/2004


      FULL PRODUCT VERSION :
      Java(TM) Plug-in: Version 1.4.2_03
      Using JRE version 1.4.2_03 Java HotSpot(TM) Client VM

      ADDITIONAL OS VERSION INFORMATION :
      Windows 2000 Pro 5.00.2195 Service Pak 4

      A DESCRIPTION OF THE PROBLEM :
      In IE 6.0.2600.0000 using Java(TM) Plug-in: Version 1.4.2_03 do the following:

      - load the Java2d example applet (substituted for our applet) for example load C:\j2sdk1.4.2_03\demo\jfc\Java2D\Java2Demo.html
      -open java console type 'm' to display memory used
      -reload the page (and therefore the applet)
      -type 'm' in the console
      -notice the extra memory used
      -reload again
      -type 'm' (or if you want type 'g' to garbage collect)
      -notice extra memory consumed

      the following is my console output
      Java(TM) Plug-in: Version 1.4.2_03
      Using JRE version 1.4.2_03 Java HotSpot(TM) Client VM
      User home directory = C:\Documents and Settings\amcinnis

      Proxy Configuration: No proxy





      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      o: trigger logging
      p: reload proxy configuration
      q: hide console
      r: reload policy configuration
      s: dump system properties
      t: dump thread list
      v: dump thread stack
      x: clear classloader cache
      0-5: set trace level to <n>
      ----------------------------------------------------
      Memory: 8,896K Free: 3,719K (41%) ... completed.

      Memory: 17,628K Free: 7,757K (44%) ... completed.

      Memory: 28,168K Free: 12,266K (43%) ... completed.

      Memory: 36,884K Free: 16,296K (44%) ... completed.

      Garbage collect ... completed.

      Memory: 36,884K Free: 15,872K (43%) ... completed.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. load the Java2d example applet (substituted for our applet) for example load C:\j2sdk1.4.2_03\demo\jfc\Java2D\Java2Demo.html
      2. open java console type 'm' to display memory used
      3. reload the page (and therefore the applet)
      4. type 'm' in the console
      -notice the extra memory used
      5. reload again
      6. type 'm' (or if you want type 'g' to garbage collect)
      -notice extra memory consumed

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Minimal if no increase in memory used when reloading an applet.
      ACTUAL -
      Memory is consumed without bound as the page containing the applet is reloaded. Note that this only happens when using the 1.4.2_02 or greater plugin in IE 6, previous plugins had no such problem and the offending plugin does not exhibit the problem in Netscape.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      None in the console

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      The Sun Java2d example shipped with the 1.4.2_03 plugin for example

      C:\j2sdk1.4.2_03\demo\jfc\Java2D\Java2Demo.html
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None that I could come up with.
      (Incident Review ID: 231494)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: