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

ColorAdjust effect consumes a lot of memory which could lead to OOM exception

    Details

      Description

      ColorAdjust effect consumes a lot of memory which could lead to OOM exception
      when running FXTester benchmark.

      Here is the example of run which results in OOM:
       export JAVA_HOME=<jdk5 or 6u15 or 6u17>
       javafx -cp FXTester.jar workload.FXTester -static -numelem 250 -size 188

      jmap shows that at the time of OOM occurs the heap is almost eaten by arrays of Floats:
       class [F 199 60427048
       ...
       

      So, almost 60mb is eaten by 199 instances of "[F".
      Taking into account that default MaxHeapSize in jdk5, 6u15 and 6u17 is 64Mb then it explains OOM.
       
       
      The problem is seen
      - on both mac and windows
      - with both prism and swing profiles
      - with fx1.2.1 and latest fx1.3

      Note, if you try 6u18 you will not see OOM. This is because default max heap size has
      been significantly increased in 6u18.

      It looks like ColorAdjust effect consumes too much memory.
      Other effects consumes in 10 times less (run jmap -histo <pid> to see it).

      Filing this bug to investigate whether this is done intentionally or something could be improved.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              epavlova Ekaterina Pavlova
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: