[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Server side thread leak?

galder.zamarreno@jboss.com do-not-reply at jboss.com
Tue Mar 31 06:27:07 EDT 2009


"bstansberry at jboss.com" wrote :  Sounds like disconnecting is necessary though, with the "invokerDestructionDelay" as the workaround to cut down on the waste associated with that.

I agree. It looks to me the right thing to do is to connect()/disconnect(). The only reason I could see to leave it as it is would be if creation/connect were noticeable more expensive operations compared to caching it and reusing the same client all the time. I don't see it being much more expensive although the ClientInvoker location done in 2.2.x happens within a big synchronized block. 

A jira on this could verify the performance of different options.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222290#4222290

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222290



More information about the jboss-dev-forums mailing list