Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2103

OutOfMemory errors when storing very large binary values in repository using InfinispanBinaryStore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.6.0.Final
    • Fix Version/s: 3.7.0.Final
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux 3.12.0-1-ARCH #1 SMP x86_64 GNU/Linux
      Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

      Description

      Using a leveldb infinispan configuration it seems that the blobCache instance of ChunkOutputstream blows up the heap space since all the chunks are stored in memory:
      https://github.com/ModeShape/modeshape/blob/modeshape-3.6.0.Final/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/infinispan/ChunkOutputStream.java#L111

      The following test shows the problem when adding a binary node using the leveldb configuration:
      https://github.com/futures/large-files-test
      especially: https://github.com/futures/large-files-test/blob/master/src/test/java/LevelDBConfigLargeFileIngestTest.java

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                oleg.kulikov Oleg Kulikov
                Reporter:
                fasseg frank asseg
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: