pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hewson <j...@jahewson.com>
Subject Re: "OutOfMemoryError: Java heap space" even when using MemoryUsageSetting.setupTempFileOnly()
Date Mon, 29 Aug 2016 21:13:26 GMT

> On 28 Aug 2016, at 04:30, Tilman Hausherr <THausherr@t-online.de> wrote:
> 
> Am 28.08.2016 um 10:53 schrieb Orlev@beeriprint.co.il:
>> looks like MemoryUsageSetting.setupTempFileOnly() has no affect ?
>> do I use it incorrectlly ?
> 
> You're using it correctly. The solution is below:
> 
>> 
>> ** I can overcome this problem with -Xmx1500m but had to increase my physical memory..
, and.., I have much bigger files (250000 pages)…
> 
> 
> Additionally, if you're doing rendering, take care not to keep the result images in memory.

Also make sure you’re not creating a List<PDPage> or anything similar.

— John

> 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