You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rene Preissel (JIRA)" <ji...@apache.org> on 2016/03/16 17:33:34 UTC
[jira] [Updated] (COMPRESS-343) Native Memory Leak in
Sevenz-DeflateDecoder
[ https://issues.apache.org/jira/browse/COMPRESS-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rene Preissel updated COMPRESS-343:
-----------------------------------
Attachment: COMPRESS-343.patch
The same patch you will find on Github:
https://github.com/rpreissel/commons-compress/tree/COMPRESS-343
> Native Memory Leak in Sevenz-DeflateDecoder
> -------------------------------------------
>
> Key: COMPRESS-343
> URL: https://issues.apache.org/jira/browse/COMPRESS-343
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.10
> Reporter: Rene Preissel
> Attachments: COMPRESS-343.patch
>
>
> The class ...sevenz.Coders.DeflateDecoder does not close (end()) the Deflater and Inflater. This can lead to native memory issues: see https://bugs.openjdk.java.net/browse/JDK-8074108.
> In our case we create a zip archive with >100000 files. The Java heap is around 300MB (with 2GB max). The native memory is increasing to 8GB and above. Because the Java heap has no pressure - no GC is triggered, therefore the Deflaters are not collected and the native memory is not freed.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)