mikemccand commented on issue #15068: URL: https://github.com/apache/lucene/issues/15068#issuecomment-3191317050
> Maybe setting `-Dorg.apache.lucene.store.MMapDirectory.sharedArenaMaxPermits` to a smallish value (defaults to 1024) would work too, not sure. I tested `-Dorg.apache.lucene.store.MMapDirectory.sharedArenaMaxPermits=1` and it does indeed prevent the leak with my small test case on 9.12.x, JDK 21: ``` MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] MAP COUNT (from /proc/234634/maps): 508 [0 si files] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org