[
https://issues.apache.org/jira/browse/LUCENE-7647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrien Grand updated LUCENE-7647:
---------------------------------
Attachment: LUCENE-7647.patch
Here is a patch. On the writing side, things are easy since there is a single
instance that is used from a single thread and for a short amount of time, so I
just made the compressor implement Closeable. However things are a bit more
complicated on the reading side because of clones and the fact that we do not
close them all. So to keep things simple, I just changed the codec to create
Inflater instances on demand.
> CompressingStoredFieldsFormat should reclaim memory more aggressively
> ---------------------------------------------------------------------
>
> Key: LUCENE-7647
> URL: https://issues.apache.org/jira/browse/LUCENE-7647
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Attachments: LUCENE-7647.patch
>
>
> When stored fields are configured with {{BEST_COMPRESSION}}, we rely on
> garbage collection to reclaim Deflater/Inflater instances. However these
> classes use little JVM memory but may use significant native memory, so if
> may happen that the OS runs out of native memory before the JVM collects
> these unreachable Deflater/Inflater instances. We should look into reclaiming
> native memory more aggressively.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]