[
https://issues.apache.org/jira/browse/TIKA-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399756#comment-15399756
]
Tim Allison commented on TIKA-2043:
-----------------------------------
Can you share the stacktrace or the triggering file so that we can see exactly
where this is happening? This may be something that can only be tweaked within
the junrar library...we may not have any control over it.
Can you tell if this is happening while loading the Archive?
{code}
Archive rar = new Archive(file);
{code}
Or, is it happening here:
{code}
while (header != null && !Thread.currentThread().isInterrupted()) {
///process entry
header = rar.nextFileHeader();
}
{code}
If the problem happens during initialization, there's nothing we can do. If
the problem happens in the second, we could add a check on one of the
{{getSize()}} methods.
> junrar tika outofmemoryerror
> ----------------------------
>
> Key: TIKA-2043
> URL: https://issues.apache.org/jira/browse/TIKA-2043
> Project: Tika
> Issue Type: Bug
> Reporter: Nicholas DiPiazza
>
> I see common junrar related OOM errors
> how can i prevent them? It loaded a 2GB byte array into memory. how can i
> tweak that so that it has a file max?
> Shouldn't the Rar library stream the rar so that it doesn't crash the JVM?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)