Fop
  1. Fop
  2. FOP-1605

OutOfMemoryError after generating several thousand pdfs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: fo/unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      46319

      Description

      After upgrading from fop 0.20.5 to fop 0.95 our web application crashes after generating about 15000 small size pdfs (max. 1-12 pages) with the following exception: (number of bytes varies)

      Exception java.lang.OutOfMemoryError: requested 65536000 bytes for GrET* in /BUILD_AREA/jdk1.5.0_10/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?

      Before crashing used heap and process memory are growing slowly but continously. (USER_MEM_ARGS="-Xmx3072m -XX:PermSize=128m")

      We already tried using newest xalan/xerces libraries (from 2.7.1 xalan distribution) and also applied bug fix from http://svn.apache.org/viewvc?view=rev&revision=698322 to our fop o.95 library, but this made no difference. And also using a fop trunk version built end of october did not help.

      Profiling results regarding potential memory leaks are not yet available.

      1. profileSnapshot.JPG
        236 kB
        Adrian Meyer
      2. heapWalker3.JPG
        77 kB
        Adrian Meyer
      3. bug46319.diff
        4 kB
        Andreas L. Delmelle
      4. memleakPatches.diff
        84 kB
        Adrian Meyer

        Activity

        Adrian Meyer created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Adrian Meyer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development