Issue with Using Tomcat when Saving PDF Multiple Times

@alexey.maslov
We could able to start the tomcat server by adding the below line in context.xml(Location: tomcat/conf/)
<Context antiResourceLocking=“true”

But after adding this line we checked the concurrent preview conversion(10 MB - 100 pages etc) but the following error still occurs,

04:25:14.884 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [application] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@75b431e6]) and a value of type [io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap] (value [io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap@204d3d52]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
04:25:14.884 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [application] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@15fed6a7]) and
a value of type [com.aspose.pdf.internal.l59y.l1v] (value [com.aspose.pdf.internal.l59y.l1v@4111feff]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

Once this error occurs, tomcat server is restarted
Issue Occurance Environment Details:
Java : 1.8
Apache Tomcat : 9.0.54
OS : Redhat linux(rhel-7)

could you verify it once from you side and let us know.

Access the below url for PDF conversion after deploying the WAR,
localhost:8080/asposetest/preview?file_name=DOCX_100_Pages.docx

Kindly verify the above and let us know.


This Topic is created by tahir.manzoor using Email to Topic tool.


This Topic is created by tahir.manzoor using Email to Topic tool.

@dev.raz,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following:

  • version of Aspose.Slides you used
  • full stack trace of the error

Also, please note that the Presentation class implements the IDisposable interface. Therefore, you should call pres.dispose() method in your savePresentationGroup method after saving the presentation to PDF format to avoid memory leaks (AsposeTestServiceImpl.java: line 135).

However, I found some issues with Java heap space when converting “PPTX_17MB.pptx” file to PDF document and added a ticket with ID SLIDESJAVA-38773 to our issue tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.

@dev.raz,
Our development team investigated the issue and did not find any problems with using Aspose.Slides for the presentation files you provided. All works fine with 2gb of RAM. It looks like the problem is in Aspose.PDF, because there is the following description in the exception you encountered:

Therefore, I moved this forum thread to Aspose.PDF forum. My colleagues will help you further.

@Andrey_Potapov
Thank you for the reply.

All works fine with 2gb of RAM.

Is it worked with multiple preview conversion?
If so could you share us how many memory it consumed during conversion

@dev.raz,
Unfortunately, I have no additional information. We’ve tested the issue in an isolated environment. It seems to be your problem is related to something else. Aspose.PDF team should check the problem you described.

@dev.raz

This issue is related to Aspose.Cells and Aspose.Words. You will be notified via related forum threads once your issue is resolved.