java - Memory Leak Because of xmlbeans 2.6.0.jar -


i'm trying 1 project xlsx file creation included xmlbeans 2.6.0.jar. when i'm trying restart glassfish i'm getting following error. please 1 go through , me out

error: severe:   web application [/test] created threadlocal key of type [org.apache.xmlbeans.impl.schema.schematypeloaderimpl$1]   (value   [org.apache.xmlbeans.impl.schema.schematypeloaderimpl$1@4f7c1b38]) ,  value of type [java.util.arraylist] (value [[java.lang.ref.softreference@51ec7f5b]]) failed remove when  web application stopped. threads going renewed on  time try , avoid probable memory leak.  severe:   web application [/test] created threadlocal  key of type [org.apache.xmlbeans.impl.store.locale$1] (value  [org.apache.xmlbeans.impl.store.locale$1@736da929]) , value of  type [java.lang.ref.softreference] (value  [java.lang.ref.softreference@60681b99]) failed remove when  web application stopped. threads going renewed on  time try , avoid probable memory leak.  severe:   web application [/test] created threadlocal  key of type [org.apache.xmlbeans.xmlbeans$1] (value  [org.apache.xmlbeans.xmlbeans$1@4fe26977]) , value of type  [java.lang.ref.softreference] (value  [java.lang.ref.softreference@7d46d177]) failed remove when  web application stopped. threads going renewed on  time try , avoid probable memory leak. 

this a known issue of xml beans library.

you may try following jochen kemnade's suggestion:

as workaround, moved poi transformations dedicated thread pool shutdown when webapp context destroyed. way, leaks go down pool , tomcat's handler threads stay clean

do work inside , executor , rid of it.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -