java/lang/OutOfMemoryError while converting a pdf to pdf_a

Hi,

For security reasons my compagny have to convert several type of documents to pdf_a using aspose 9.7.1 unix, before storing in DMS.
While converting attached pdf document, the WAS 7 crash (and all other applications) with a "OutOfMemoryErrorOutOfMemoryError".

We tried to increase jvm memory, so the convertion is very long and finaly the server crash.
For information, my compagny bought a licence 1 month ago and i dont find how i can use enterprise support.

The java code :
...
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(web.getDocument());
valide = pdfDocument.convert("Conversion_log.xml",
com.aspose.pdf.PdfFormat.PDF_A_1A,
com.aspose.pdf.ConvertErrorAction.Delete);
if (valide ){
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
pdfDocument.save(outStream, SaveFormat.Pdf);
...com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(web.getDocument());
valide = pdfDocument.convert("Conversion_log.xml",
com.aspose.pdf.PdfFormat.PDF_A_1A,
com.aspose.pdf.ConvertErrorAction.Delete);
if (valide ){
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
pdfDocument.save(outStream, SaveFormat.Pdf);
......
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(web.getDocument());
valide = pdfDocument.convert("Conversion_log.xml",
com.aspose.pdf.PdfFormat.PDF_A_1A,
com.aspose.pdf.ConvertErrorAction.Delete);
if (valide ){
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
pdfDocument.save(outStream, SaveFormat.Pdf);
...com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(web.getDocument());
valide = pdfDocument.convert("Conversion_log.xml",
com.aspose.pdf.PdfFormat.PDF_A_1A,
com.aspose.pdf.ConvertErrorAction.Delete);
if (valide ){
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
pdfDocument.save(outStream, SaveFormat.Pdf);
...

The Executing Environment (WAS 7) :
UNIX AIX 64 bits
/usr2/produits/websphere7/AppServer/java/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460sr16ifix-20140425_01(SR16+IX90144))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr16-20140416_196573 (JIT enabled, AOT enabled)
J9VM - 20140416_196573
JIT - r9_20130920_46510ifx5
GC - GA24_Java6_SR16_20140416_1614_B196573)
JCL - 20140406_01UNIX AIX 64 bits

The (bad) file properties :
Author : Viviane
Producer : GPL Ghostscript 9.05
Subject :
Title : GdPicture Print Process
Trapped :
Creator : PDFCreator Version 1.5.0
Version : 1.4
Taille : 1948 Ko
Nombre de pages : 7

The Log Trace :

15/01/2016 08:38:06 Début du batch
15/01/2016 08:38:10 - PDF 9.7.1 - Lancement du Test PDF to PDF
JVMDUMP039I Processing dump event “systhrow”, detail “java/lang/OutOfMemoryError” at 2016/01/15 08:41:12 - please wait.
JVMDUMP032I JVM requested Heap dump using ‘/usr2/projets/gsicass/intg/GW/testpdf/heapdump.20160115.084112.34013282.0001.phd’ in response to an event
JVMDUMP010I Heap dump written to /usr2/projets/gsicass/intg/GW/testpdf/heapdump.20160115.084112.34013282.0001.phd
JVMDUMP032I JVM requested Java dump using ‘/usr2/projets/gsicass/intg/GW/testpdf/javacore.20160115.084112.34013282.0002.txt’ in response to an event
JVMDUMP010I Java dump written to /usr2/projets/gsicass/intg/GW/testpdf/javacore.20160115.084112.34013282.0002.txt
JVMDUMP032I JVM requested Snap dump using ‘/usr2/projets/gsicass/intg/GW/testpdf/Snap.20160115.084112.34013282.0003.trc’ in response to an event
JVMDUMP010I Snap dump written to /usr2/projets/gsicass/intg/GW/testpdf/Snap.20160115.084112.34013282.0003.trc
JVMDUMP013I Processed dump event “systhrow”, detail “java/lang/OutOfMemoryError”.
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at com.aspose.pdf.internal.p92.z6.m12(Unknown Source)
at com.aspose.pdf.internal.p57.z26$z1.m1(Unknown Source)
at com.aspose.pdf.internal.p91.z8.m1(Unknown Source)
at com.aspose.pdf.internal.p57.z32.m1(Unknown Source)
at com.aspose.pdf.internal.p92.z10.m1(Unknown Source)
at com.aspose.pdf.internal.p92.z6.m1(Unknown Source)
at com.aspose.pdf.internal.p27.z7.m1(Unknown Source)
at com.aspose.pdf.internal.p27.z7.m1(Unknown Source)
at com.aspose.pdf.OperatorCollection.m7(Unknown Source)
at com.aspose.pdf.OperatorCollection.m2(Unknown Source)
at com.aspose.pdf.OperatorCollection.size(Unknown Source)
at com.aspose.pdf.internal.p88.z2.m1(Unknown Source)
at com.aspose.pdf.internal.p88.z3.m13(Unknown Source)
at com.aspose.pdf.internal.p88.z2.m2(Unknown Source)
at com.aspose.pdf.internal.p88.z3.m12(Unknown Source)
at com.aspose.pdf.internal.p88.z2.m1(Unknown Source)
at com.aspose.pdf.ADocument.m1(Unknown Source)
at com.aspose.pdf.Document.m1(Unknown Source)
at com.aspose.pdf.ADocument.convert(Unknown Source)
at com.aspose.pdf.Document.convert(Unknown Source)
at gedpk.TestPDF.TestPDF(TestPDF.java:81)
at gedpk.GedGsicassBatch.main(GedGsicassBatch.java:34)
15/01/2016 08:41:39 Fin du batch

Thanks for your help

my related subjects (not resolved yet) :
<a href="https://forum.aspose.com/t/26583

Hi,


Thanks for contacting support.

We are working replicating the issue in our environment and will keep you posted with our findings, shortly.

Hi,



Thanks for your patience.



I have tested the scenario and have managed to reproduce the same problem. For the sake of correction, I have logged it as PDFNEWJAVA-35493 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time.



We are sorry for this inconvenience.

Hi,
What news about PDFNEWJAVA-35493 ?
Thanks

Hi,


Thanks for your patience.

The issue reported earlier is pending for review and is not yet resolved. However the product team will surely consider investigating/fixing it as per development schedule and as soon as we have some definite updates regarding its resolution, we will let you know. Please be patient and spare us little time. We are sorry for this delay and inconvenience.