Hi all!

I have a requirement for PDFBox memory management where a multi-threaded
process that is generating PDF files (one per thread, at most) should share
a certain total amount of RAM (any excess should use scratch files). This
is because PDFs are in the order of thousands of pages and in-memory
resources must come from a limited, common pool for efficient use of heap
memory.

Is there any mechanism available for this purpose? MemoryUsageSetting
appears to control each PDF separately, but I need more flexibility, i.e.
some sort of pooling of RAM/file resources.

I've looked a little into the improvements in 3.0 regarding the "stream
cache" and it could be a solution, albeit with some extra work.

Any ideas?

C.D.

Reply via email to