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

Memory leak in use of Nimbus L&F - Seen after continuous repaininting

XMLWordPrintable

    • b27
    • x86
    • windows_xp

      Memory leak seen in Nimbus L&F

      To reproduce

      run SwingSet2/SwingSet3 with Nimbus L&F attach this process to a netbeans profiler as an external app. The memory use of different classes instantiated can be seen in the memory profiling.

      instances of the class com.sun.java.swing.plaf.nimbus.DuoDerivedColor$UIResource keeps increasing and never gets garbage collected even if the user forces garbage collection.


      The object of this particular class is around 50-60 bytes in size but if the app is run for a 4-5 hours continuosly with large no of repainting e.g. some Animation. the no of instances keeps going up... never comes down.

      In this case i tried the following
      1) minimize/maximize app
      2) moving anative window over the app
      3) keeping multiple native windows over the app and bringing the app to the foreground

      All this forces either complete repaint or partial repaint - I could see the instances of the particular class going up for each repaint. (forcing a gc call didn't reduce even one instance)

      Have attached a screenshot of the profiling info with the particular instance count highlighted

            jasper Jasper Potts (Inactive)
            bmathewssunw Blessan Mathews (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: