nguyendai1296 Posted July 8, 2022 Share Posted July 8, 2022 We are facing memory leaks due to net.sf.jasperreports.engine.fill.JRSwapFileVirtualizer storing huge object reference in tomcat threadlocal. Please let me know what we can do. Our application is a web application.06-Jul-2022 19:27:47.956 警告 [Catalina-utility-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [brother2.0##0006] appears to have started a thread named [batik CleanerThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165) org.apache.batik.util.CleanerThread.run(CleanerThread.java:106)06-Jul-2022 19:27:47.958 重大 [Catalina-utility-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [brother2.0##0006] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4021eaf5]) and a value of type [net.sf.jasperreports.engine.fill.JRSwapFileVirtualizer] (value [net.sf.jasperreports.engine.fill.JRSwapFileVirtualizer@29d19b18]) 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now