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

Messages for loading Resources

XMLWordPrintable

    • b02
    • x86
    • windows_xp

        FULL PRODUCT VERSION :
        java version "1.6.0_20"
        Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
        Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        "next generation java plugin" is enabled in the Java control panel

        A DESCRIPTION OF THE PROBLEM :
        When deploying a Java Applet with JPI 1.6U20 and next generation java plugin enabled there are messages in the Java Console for every resource loaded regardless of the trace level set. This consumes more and more heap as all messages written to the java console seem to be added to one string (analyzed this with jhat and jmap). This is a problem if there are resources loaded frequently as the heap fills up.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Start a java Applet (e.g. this one http://java.sun.com/applets/jdk/1.4/demo/applets/ImageMap/example1.html) and look at the Java Console; there are Messages for the loaded Images and Audio clips. This messages are displayed every time a resource is loaded.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        When using trace level 0 I expect no trace messages shown at all in the Java Console.
        ACTUAL -
        Trace messages for loading resources are shown for every loaded resource

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        heap fills up and I suspect when loading resources frequently there should a OutOfMemoryException be thrown

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        Reproduceable with the Sun Sample located at http://java.sun.com/applets/jdk/1.4/demo/applets/ImageMap/example1.html
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        No workaround (except not loading resources...)

              dgu Dennis Gu (Inactive)
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: