commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vandahl (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCS-136) OutOfMemoryError when diskcache dispose
Date Mon, 22 Sep 2014 15:14:34 GMT

     [ https://issues.apache.org/jira/browse/JCS-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Vandahl resolved JCS-136.
--------------------------------
       Resolution: Fixed
    Fix Version/s: jcs-2.0
         Assignee: Thomas Vandahl

Applied slightly modified fix.

> OutOfMemoryError when diskcache dispose
> ---------------------------------------
>
>                 Key: JCS-136
>                 URL: https://issues.apache.org/jira/browse/JCS-136
>             Project: Commons JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-2.0
>            Reporter: Youngho Cho
>            Assignee: Thomas Vandahl
>             Fix For: jcs-2.0
>
>
> When JCS shutdown with CompressingSerializer
> I got following OutOfMemoryError
> java.lang.OutOfMemoryError
> Exception in thread "CacheEventQueue.QProcessor-com_nannet_jettiger_om_AttributeOption"
java.lang.OutOfMemoryError
>         at java.util.zip.Deflater.init(Native Method)
>         at java.util.zip.Deflater.<init>(Deflater.java:169)
>         at java.util.zip.Deflater.<init>(Deflater.java:186)
>         at org.apache.commons.jcs.utils.zip.CompressionUtil.compressByteArray(CompressionUtil.java:133)
> Here is a patch 
> ( Details here : http://www.devguli.com/blog/eng/java-deflater-and-outofmemoryerror/
)
> Index: zip/CompressionUtil.java
> ===================================================================
> --- zip/CompressionUtil.java	(revision 1626113)
> +++ zip/CompressionUtil.java	(working copy)
> @@ -150,6 +150,7 @@
>              bos.write( buf, 0, count );
>          }
>  
> +        compressor.end();
>          bos.close();
>  
>          // Get the compressed data



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message