Hi,
we are running licensed version of aspose pdf for Java. When converting a PDF file to PDF-A, we notice a performance decrease for larger files. Even outofmemory exceptions for files larger then 5Mb. We are running on JBoss server with 12 cores and notice that when we run a test with only one thread (a file almost 6Mb) all server cores are taken and the server crashes.
We are running aspose-pdf-9.3.1-jdk16.jar. I tried with the 9.5.2 but that gives errors (I need to investigate why).
Some performance numbers we gathered:
500kb takes about 2.5s
1mb takes between 10-50s depending on how many pages the pdf has.
2mb takes between 17-30s
5mb+ server crash with outofmemoryexception
See attached file for the source code used.
Any idea how we can improve performance so our server will not crash anymore and we can handle larger files? For now I have fixed this by limiting the size of the PDF to max 4Mb and the number of pages < 5.
Best regards,
Joop