[jboss-user] [EJB/JBoss] - Urgent Help Regarding Stateless Session Bean

JKV do-not-reply at jboss.com
Thu Apr 24 04:48:34 EDT 2008


I am using EJB3 in JBoss 4.2.2. My standard-jboss.xml has the following standard configuration

<container-pool-conf>
        100
</container-pool-conf>

for <container-name>Standard Stateless SessionBean</container-name>. I have as many as 7 Stateless Session Bean in my ear, one (Ex: SLSB-AA) of which is called remotely and others are called locally. I am calling the SLSB-AA as many as 70 times per second and there are local calls between SLSBs. My code outside JBoss which calls the SDSB-A run perfectly for 700 to 800 calls. After when I get the exception 


Problem establishing socket connection for InvokerLocator [socket://xx.xx.xxx.xxx:3873/]
org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.11.145.156:3873/]
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:532)
	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
	at org.jboss.remoting.Client.invoke(Client.java:1634)
	at org.jboss.remoting.Client.invoke(Client.java:548)
	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
	...................
	...................
Caused by: java.net.SocketException: Can not obtain client socket connection from pool. Have waited 30015 milliseconds for available connection (51in use)
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:862)
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
	at org.jboss.remoting.Client.invoke(Client.java:1634)
	at org.jboss.remoting.Client.invoke(Client.java:548)
	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)


I increased the pool size 
<container-pool-conf>
        1000
</container-pool-conf>

even then I get this exception after calling my SLSB-A for 1200-1300 times. Any help is greatly appreciated

Regards


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

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



More information about the jboss-user mailing list