Details
-
Bug
-
Resolution: Done
-
Blocker
-
3.6.0.Final
-
None
-
None
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