Am 09.08.2017 um 19:58 schrieb Tretonio Tretis:
When memory is high and fill all capacity, manager of memory of the
operational system usage cache of the disk and process slows down.

No have error of memory exception, have high consumption of the memory
using awt BufferedImage.

In my example pdf go more 700 mega into memory with awt and with javaFX
using GraphicsContext this memory less 200  mega.

my application usage parameter -Xmx, and my suggestion is to port pdfbox to

You can also render to an awt graphics object, i.e. without using a BufferedImage.


2017-08-09 14:08 GMT-03:00 Tilman Hausherr <>:

Please be aware that memory consumption doesn't mean anything if you're
not getting an out of memory exception.

PDFBox does a lot of "soft" / "weak" caching to speed up things. These
resources are released when memory is needed.

I suggest you set a -Xmx value and then test whether your files files work
or not.


Am 09.08.2017 um 14:13 schrieb Tretonio Tretis:

High memory consumption for viewing using

PDFRenderer renderer = new PDFRenderer (document);

BufferedImage pageImage = renderer.renderImage (pageNumber, 1.3f);

In a pdf example 450 pages, every time I go displaying a new page the
memory is growing.

I'm trying to render using javaFX, and apparently it's using less memory
than awt.

What do you guys think of this, suggest something to optimize memory

Thank you

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to