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

Memory consumption increases every time I push a frame to FS mode and restore it back, Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3
    • None
    • 6
    • client-libs
    • 2d
    • Cause Known
    • x86
    • linux_sun

    Description

      I am running a multi-monitor test on a Cinnabar-linux machine having an ATI Radeon 9600XT video card. In this test, I am actually looping through all the GCs available with the GraphicsDev and creating a frame, rendering some 2D contents on it. I am pushing this frame to FS mode and restoring it back.

      When I do this, the memory consumption slowly increases with every iteration, especially when I am pushing the frame to FS mode. The memory consumption goes as high as 55 MB. This does not happen with FS mode simulation (prior to b39 where the frame just gets resized to the bounds of the GC) and seen only in FullScreen Exclusive mode. Looks like some resources are not freed up when restoring the FS frame to normal mode. With OGL pipeline, the test attached here actually throws OutOfMemoryError with the default heap size due to this problem. With simulated mode, the max memory consumed was just 5 MB on an average at the end of the loop but with FS exclusive mode, it is actually 55 MB.

      I monitored this using JConsole and the consumption increases like a stair case. This is reproducible only on Linux and not on Win32. I reproduced it with Mustang-b45. I have also attached the output of xdpyinfo.

      I have attached a tar file. Extract it and run the test as follows:
      java FrameFullScreenTest true
      true - FS exclusive mode
      false - FS simulated mode

      If you run it with OGL, you would see OutOfMemoryError after some iterations.

      Attachments

        Issue Links

          Activity

            People

              campbell Christopher Campbell (Inactive)
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: