pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hewson <j...@jahewson.com>
Subject Re: PDFRenderer, PDDocument memory issue
Date Thu, 02 Jul 2015 04:10:27 GMT

> On 1 Jul 2015, at 07:52, Tilman Hausherr <THausherr@t-online.de> wrote:
> 
>> Am 01.07.2015 um 10:16 schrieb Alex Sviridov:
>> In my application I have real time memory graphs and they show that memory is very
fast filled.
>> When there is no more free memory getPageThumbImage hangs - no exception, nothing.
But the code stops.
>> When I do pdfDocument=null,pdfRenderer=null I get about 400mb free memory. How to
solve this problem?
> 
> If you're building from source, try this: in PDImageXObject.java, remove the line "cachedImage
= image;". This will consume less space if you have large PDFs with many images.

We don't retain XObjects across pages (anymore), so that shouldn't be the cause of his gradual
memory increase?

> Tilman
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message