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

John Hewson edited comment on PDFBOX-3442 at 7/31/16 6:00 PM:
--------------------------------------------------------------

We shouldn't cache inside though PDResources though, that's why we have 
ResourceCache. PDResources can end up existing for a long time and result in us 
holding onto PDFont objects much longer than needed.

We just need to add another method to ResourceCache to handle direct objects 
keyed by type+name+page (e.g. font/f1/5).


was (Author: jahewson):
We shouldn't cache inside though PDResources though, that's why we have 
ResourceCache. PDResources can end up existing for a long time and result in us 
holding onto PDFont objects much longer than needed.

> OOM for single page pdf file
> ----------------------------
>
>                 Key: PDFBOX-3442
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3442
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Tim Allison
>            Priority: Minor
>         Attachments: res.diff
>
>
> On TIKA-2045, a user posted a single page document that leads to OOM with 
> -Xmx1g.  I confirmed this with PDFBox's ExtractText.
> Might be a memory leak with the fonts?  See 
> [this|https://issues.apache.org/jira/browse/TIKA-2045?focusedCommentId=15399583&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15399583]
>  for some diagnostics I did.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to