[ 
https://issues.apache.org/jira/browse/TIKA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474674#comment-17474674
 ] 

Tim Allison commented on TIKA-3642:
-----------------------------------

If you're getting an infinite loop with 2.2.1 but not with 1.27 on a specific 
file, can you share that with me personally ([email protected])?

 

I haven't worked with ForkParser extensively, but it looks like you can 
configure the parser it uses with something like:
{noformat}
ForkParser forkParser = new ForkParser(ForkParser.class.getClassLoader(), 
autoDetectParser); {noformat}
 

>We are worried about infinite loop issue since it is problem if this issue 
>occur in production

Yes, this is a serious concern that can happen with large and small files. 
Running the forkparser only on large files will not 100% avoid these problems.

> Getting java.lang.OutOfMemoryError: Java heap space when parsing PDF file
> -------------------------------------------------------------------------
>
>                 Key: TIKA-3642
>                 URL: https://issues.apache.org/jira/browse/TIKA-3642
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Tika User
>            Priority: Major
>
> When parsing large PDF files(1.65 GB) we are getting out of memory error. The 
> version we are using 2.0.25(pdfbox)
> java.lang.OutOfMemoryError: Java heap space at 
> org.apache.pdfbox.pdfparser.COSParser.isString



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to