I am licensed to use Aspose total for JAVA and am currently using Aspose.PDF v22.8 and Aspose.Words v22.8 running on Tomcat 8.5.72 using JDK 1.8.0_301.
When shutting down tomcat, i notice the messages below. Is this an indication that there is a memory leak within Aspose/PDF and Aspose/Words. If so, how do i fix it? For PDF, I am running Document.close() after every use and MemoryCleaner.clear upon shutdown. For Words, there is no command to close the document after using it so i assume it automatically shuts down.
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@54dc0d5e]) and a value of type [com.aspose.pdf.internal.l159if.lc] (value [com.aspose.pdf.internal.l159if.lc@445e9b15]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4d5b4fb]) and a value of type [com.aspose.pdf.internal.l10n.lf[]] (value [[Lcom.aspose.pdf.internal.l10n.lf;@3af516b7]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@e774a4a]) and a value of type [com.aspose.pdf.internal.l149t.l0u] (value [com.aspose.pdf.internal.l149t.l0u@3e41eea2]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@5c80b17]) and a value of type [com.aspose.pdf.internal.l158h.l1v] (value [com.aspose.pdf.internal.l158h.l1v@31d924fe]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@dcf899]) and a value of type [com.aspose.pdf.internal.l6v.l0v] (value [com.aspose.pdf.internal.l6v.l0v@40b9d260]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [com.aspose.words.internal.zzY4G$1] (value [com.aspose.words.internal.zzY4G$1@1a15e440]) and a value of type [com.aspose.words.internal.zzZ1z] (value [com.aspose.words.internal.zzZ1z@14311fb0]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [com.aspose.pdf.internal.l31h.le$1] (value [com.aspose.pdf.internal.l31h.le$1@76f1ce94]) and a value of type [com.aspose.pdf.internal.l31h.le] (value [com.aspose.pdf.internal.l31h.le@5daa53ed]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [com.aspose.words.internal.zzdW$1] (value [com.aspose.words.internal.zzdW$1@68288bfc]) and a value of type [com.aspose.words.internal.zzYHA] (value [HYPERLINK]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7478c5d6]) and a value of type [com.aspose.pdf.internal.l2u.lb] (value [com.aspose.pdf.internal.l2u.lb@c0520a3]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [com.aspose.words.internal.zzdW$1] (value [com.aspose.words.internal.zzdW$1@2fe43305]) and a value of type [com.aspose.words.internal.zzYHA] (value []) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1d00155a]) and a value of type [com.aspose.pdf.internal.l10n.lb] (value [com.aspose.pdf.internal.l10n.lb@38a53e61]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@421f6e17]) and a value of type [com.aspose.pdf.internal.l127k.lb] (value [com.aspose.pdf.internal.l127k.lb@4c6d014a]) 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.
Oct 12, 2022 7:24:22 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [Phoenix2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@5c80b17]) and a value of type [com.aspose.pdf.internal.l158h.l1v] (value [com.aspose.pdf.internal.l158h.l1v@79cbbce6]) 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.