Hi good day,
How are you?
we have found HIGH CPU threads in JMX Console and all are ASPOSE related threads with regards to image conversion process spinning out CPU and causing memory issues in PROD.
we currently using .aspose.pdf-11.4.0.jar.
CPU LOADAVERAGE MEMORY
97 % 8.83,9.174 (4), 7.79G(85%)
we using 4 CPU's and 8 gig memory for this jboss instance.
currently there are 8 threads with the same stack trace,pls find attachment and are not getting closed or strucked in memory.
The error shows at this line of code.
com.mhgad.za.aspose.MhgAsposePdfConversionImpl.convertImageToPdf(MhgAsposePdfConversionImpl.java:174)
Pls find the code snippet in attachement.
The problem was there earlier also due to upgrades deployed the issues came down but problem still persists.
unfortunately i do not have sample images at this stage it will take some time to identify those images in PROD environment.
Can you suggest anything regarding this issue.
Your response will be appreciated,
Kind Regards,
Prasad Dasari..
Hi Good day,
Thank you for the response,well appreciated.
Pls find the attached samples in .zip, pls note we are trying to convert.eml (body + jpg attachments) ,issues found while converting jpg files and consumes more memory and it threads are getting hanged that causing Jboss server to be run in high CPU and not coming down at all as explained.
will try to use memory cleaner function as per your suggestions.
Kind Regards,
Prasad Dasari…
Hi Prasad,
Thanks for your feedback. I have tired to convert your shared EML files to MHTML for JPEG conversion but I am getting a single page MHTML. We will appreciate it if you please share your source JPEG images or sample code to convert EML(body+attachments) to JPEG image, so we will test the performance issue with Aspose.PDF and will provide you information accordingly.
We are sorry for the inconvenience caused.
Best Regards,
Hi Good day,
The JPEG files are attached as a part of eml attachments.
But anyway,i am sending the JPG files again separately in .zip files attached.
File with name ‘CCF20160412_00001.zip’ contains jpg files that came in as .eml attachments in which we are trying to convert email body and JPG files separately and append it as one single PDF.
File with name ‘IMG_20160115_094305.zip’ contains different set of jpg files ,that came in as .eml attachments in which we are trying to convert email body and JPG files separately and append it as one single PDF.
File with name 'IMG_00000099.zip contains different set of jpg files ,that came in as .eml attachments in which we are trying to convert email body and JPG files separately and append it as one single PDF.
Your response will be appreciated,
Kind Regards,
prasad Dasari
Hi Prasad,
Thanks for sharing the source images. I have converted attached images to PDF and merged resultant PDF documents with Aspose.Pdf for Java 11.8.0 and JDK 1.7, but unable to notice high CPU utilization. It consumes around 1GB RAM for couple of seconds and then releases the memory after completion of processing. I will appreciate it if you please download, try latest release of
Aspose.Pdf for Java along with above memory settings and share the results.
We are sorry for the inconvenience.
Best Regards,