[jboss-dev-forums] [JBoss AS 7 Development] - jboss client creates threads that are not closed during the shutdown of tomcat

ckar do-not-reply at jboss.com
Fri Sep 21 14:51:21 EDT 2012


ckar [https://community.jboss.org/people/ckar] modified the document:

"jboss client creates threads that are not closed during the shutdown of tomcat"

To view the document, visit: https://community.jboss.org/docs/DOC-47431

--------------------------------------------------------------
I am developing an application that runs on Jboss AS7 and its front end, is developed on a tomcat that makes remote ejb calls to the jboss.
In tomcat i use spring and the configuration is the following

   <bean id="jndiProperties"
      class="org.springframework.beans.factory.config.PropertiesFactoryBean">
      <property name="properties">
         <map>
            <entry key="java.naming.factory.url.pkgs" value="org.jboss.ejb.client.naming" />
         </map>
      </property>
   </bean>

   <jee:remote-slsb id="documentService"
      business-interface="document.DocumentServiceInterface"
      jndi-name="${document.jndi.name}" 
      environment-ref="jndiProperties" />

in jboss-esb-client.properties i have the following properties

endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

remote.connections=master

remote.connection.master.host=localhost
remote.connection.master.port=4447
remote.connection.master.username=ejb
remote.connection.master.password=whatever
remote.connection.master.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

Everything works fine till i try to shutdown tomcat, where i get a lot of errors regarding memory leakage like the following

SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1 at 1ca9271]) and a value of type [java.util.Random] (value [java.util.Random at 1194685]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder at 195fb28]) and a value of type [byte[]] (value [[B at 19c2afd]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder at 195fb28]) and a value of type [byte[]] (value [[B at 1241146]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1 at ea1895]) and a value of type [java.lang.Boolean] (value [true]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1 at 1ca9271]) and a value of type [java.util.Random] (value [java.util.Random at f40ddb]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1 at 1ca9271]) and a value of type [java.util.Random] (value [java.util.Random at 1aad8e4]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder at 195fb28]) and a value of type [byte[]] (value [[B at 1858371]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1 at ea1895]) and a value of type [java.lang.Boolean] (value [true]) 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.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks


Is it something that i am missing from the configuration or is it sth else?
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/docs/DOC-47431]

Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120921/7e798caa/attachment.html 


More information about the jboss-dev-forums mailing list