PDF Java memory overflow

Asked

Viewed 212 times

0

Hello, good night.

I’m having memory overflow problems in a java application when generating +/- 1000 PDF’s in a loop.

In this application, to generate the PDF, a proprietary framework is used, where I cannot access in "how the PDF is generated".

Roughly in PDF 80, the application is terminated with error by memory overflow.

I would like to know if, using JAVA resources, it is possible to optimize the use of memory/processing. example thread or some performance optimization feature and memory management.

Thank you

  • Having access to the code that generates these PDF is critical, because even if your code is optimized if the PDF generator is an elephant, it will keep popping memory

  • Post code examples and in the report where the report data comes from.

  • vc can use these java properties to optimize Garbage Collector and set the memory amount to be used -server -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -XX:SurvivorRatio=2 -XX:+CMSConcurrentMTEnabled -XX:CMSMaxAbortablePrecleanTime=10000 -XX:MaxMetaspaceSize=512M -XX:-UseAdaptiveSizePolicy -Xmx1g

  • but having access to the part of the code where the problem is is fundamental for us to understand what is really happening

  • Really, without access to the source is impossible. By chance someone has some example of Crystal Reports in Java?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.