[ https://issues.apache.org/jira/browse/OAK-10413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761864#comment-17761864 ]
Marcel Reutegger commented on OAK-10413: ---------------------------------------- Looks like there is not much that can be done about FlatFileStore instances. There is a list of FlatFileStore created by one of the tests with 24 instances. The CachingSegmentReader are opened by Persistence used in PurgeOldIndexVersionIT. The tests in there do not close Persistence in some cases. The MongoDocumentStore instances are actually closed, but referenced by TraverseWithSortStrategy.MemoryListener. This (non-static) inner class indirectly references a MongoDocumentStore. These listeners are added but never removed from the MemoryMXBean. A quick fix would be to reduce memory of closed MongoDocumentStore instances. Currently they are quite heavy weight because caches they reference are not cleared on close/dispose. With the two changes mentioned above, I can reliable run oak-run integration tests in the sequence seen on Jenkins without a memory issue. > DocumentStoreIndexerIT hanging > ------------------------------ > > Key: OAK-10413 > URL: https://issues.apache.org/jira/browse/OAK-10413 > Project: Jackrabbit Oak > Issue Type: Bug > Components: documentmk, run > Reporter: Julian Reschke > Priority: Major > > {noformat} > [INFO] Running org.apache.jackrabbit.oak.index.DocumentStoreIndexerIT > [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM > 1. See FAQ web page and the dump file > /home/jenkins/jenkins-agent/workspace/Jackrabbit/jackrabbit-oak-trunk/oak-run/target/failsafe-reports/2023-08-22T13-46-32_129-jvmRun1.dumpstream > {noformat} > ...and then eventually times out. -- This message was sent by Atlassian Jira (v8.20.10#820010)