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

OutOfMemoryError after running a few SwingSet2 Applet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • None
    • 6
    • client-libs
    • None
    • b08
    • 6
    • x86
    • windows

    Description

      Tested on windows XP machine.

      Install Mustang b08.

      Start a IE window. enable java console.

      Go to:

      http://javaweb.sfbay.sun.com/~ngthomas/applet/swingset/

      There is 10 swingset2 applet link listed, try to load each of them in the same browser session. e.g click on 1, which will start the loading of the swingset2 applet, after it finish loading and started, click back on the same browser, and click on 2.

      Continue and see if you can run all 10 listed.

      after 5 or so, you will get outofmemory errors:

      java.lang.OutOfMemoryError: Java heap space
      Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

      This is happening since mustang b08; b07 or earlier has not problem, tiger also has no problem.

      If you replace the following class files from b07 rt.jar into b08 rt.jar, problem seems to go away:

      java.awt.Component*.class
      java.awt.EventQueue*.class

      Now you can run all 10 swingset2 applet in the same browser session without problems.

      Attachments

        Issue Links

          Activity

            People

              osemenovsunw Oleg Semenov (Inactive)
              ngthomas Thomas Ng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: