[jboss-user] [JBoss Remoting] - Remoting threads never get closed

Dennis Kieselhorst do-not-reply at jboss.com
Tue Feb 12 10:33:38 EST 2013


Dennis Kieselhorst [https://community.jboss.org/people/kieselhorst] created the discussion

"Remoting threads never get closed"

To view the discussion, visit: https://community.jboss.org/message/797283#797283

--------------------------------------------------------------
Hi,

I'm using a standalone remote client as  https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI described in the wiki in combination with a ConfigBasedEJBClientContextSelector. Several worker threads named Remoting "endpoint name" read-1, write-1, task-1, task-2, task-3 and task-4 are created and never get destroyed. The read-1 and write-1 threads are in state RUNNABLE:


Stack trace: 
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:273)
sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:255)
sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:136)
sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
   - locked sun.nio.ch.Util$2 at 478f67d0
   - locked java.util.Collections$UnmodifiableSet at 17e8ad64
   - locked sun.nio.ch.WindowsSelectorImpl at 7c9aff86
sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)
org.xnio.nio.WorkerThread.run(WorkerThread.java:153)



The task-* threads are in state WAITING.

Is it possible to create an idle timeout?

Current properties supplied in a PropertiesBasedEJBClientConfiguration:

Properties p = new Properties();
p.put("endpoint.name", "client-endpoint-for-"+userName);
p.put("remote.connectionprovider.create.options.org.xnio.Options."+org.xnio.Options.SSL_ENABLED.getName(), "false");
p.put("remote.connections", "default");
p.put("remote.connection.default.port", String.valueOf(port));
p.put("remote.connection.default.host", host);
p.put("remote.connection.default.username", userName);
p.put("remote.connection.default.password", password);
p.put("remote.connection.default.connect.options.org.xnio.Options."+org.xnio.Options.SASL_POLICY_NOANONYMOUS.getName(), "false");
p.put("remote.connection.default.connect.options.org.xnio.Options."+org.xnio.Options.SASL_POLICY_NOPLAINTEXT.getName(), "false");
p.put("remote.connection.default.connect.options.org.xnio.Options."+org.xnio.Options.SASL_DISALLOWED_MECHANISMS.getName(), "JBOSS-LOCAL-USER");
p.put("remote.connection.default.connect.options.org.xnio.Options."+org.xnio.Options.KEEP_ALIVE.getName(), "true");
p.put("remote.connection.default.connect.options.org.jboss.remoting3."+RemotingOptions.HEARTBEAT_INTERVAL, String.valueOf(heartbeatInterval));



Thanks in advance!

Regards
Dennis
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797283#797283]

Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130212/885ec71e/attachment.html 


More information about the jboss-user mailing list