Remoting Exception: Too many channels open
prasad.deshpande Feb 22, 2012 10:41 AMHi Guys,
I'm doing a load testing on my application with 7.1.0.Final & I'm getting following exception
{className="API" methodName="logout" componentSequenceNumber=900017 severity=13 errorType=4 errorMessage="An application server error occurred while logging out." nestedException.message="Failed to create remoting connection" nestedExceptio
n.stackTrace="javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: org.jboss.remoting3.ProtocolException: Too many channels open]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.banctec.caseware.client.api.RemoteClientAPI.createCPC(RemoteClientAPI.java:132)
at com.banctec.caseware.client.api.API.logout(API.java:662)
at com.EJBTest.teardownTest(EJBTest.java:50)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.releaseJavaClient(JavaSampler.java:113)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.testEnded(JavaSampler.java:249)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:236)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:454)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: org.jboss.remoting3.ProtocolException: Too many channels open
at org.jboss.naming.remote.protocol.IoFutureHelper.get(IoFutureHelper.java:87)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:108)
... 12 more
Caused by: org.jboss.remoting3.ProtocolException: Too many channels open
at org.jboss.remoting3.remote.RemoteConnectionHandler.handleOutboundChannelOpen(RemoteConnectionHandler.java:177)
at org.jboss.remoting3.remote.RemoteConnectionHandler.open(RemoteConnectionHandler.java:307)
at org.jboss.remoting3.ConnectionImpl.openChannel(ConnectionImpl.java:75)
at org.jboss.naming.remote.client.cache.ConnectionCache$ConnectionWrapper.openChannel(ConnectionCache.java:95)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:107)
... 12 more
"}
at com.banctec.caseware.client.api.API.logout(API.java:674)
at com.EJBTest.teardownTest(EJBTest.java:50)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.releaseJavaClient(JavaSampler.java:113)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.testEnded(JavaSampler.java:249)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:236)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:454)
at java.lang.Thread.run(Unknown Source)
I'm sure, there must be some setting/configuration to avoid this error. I'm running with 100 threads & looping 10 times per thread.