Project: mule
Issue MULE-8118: Max connections exceeded in the outbound part should block instead of failing
When running the proxy scenario under more than 10 concurrent threads, the requests starts to fail due max connections limit exceeded. This parameter is not set, so this should be the default "-1"... no limit. The tcp configuration has been removed from the requester to asure that this issue is probably from the listener. Also on the core log this exception has been found: dic 03, 2014 3:07:20 PM org.glassfish.grizzly.nio.transport.TCPNIOTransport configureChannel WARNING: GRIZZLY0004: Can not set TCP_NODELAY to true java.net.SocketException: Invalid argument sun.nio.ch.Net.setIntOption0(Native Method) sun.nio.ch.Net.setSocketOption(Net.java:373) sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:189) sun.nio.ch.SocketAdaptor.setBooleanOption(SocketAdaptor.java:295) sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:330) org.glassfish.grizzly.nio.transport.TCPNIOTransport.configureChannel(TCPNIOTransport.java:445) org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnectorHandler.java:214) org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler$1.connected(TCPNIOConnectorHandler.java:154) org.glassfish.grizzly.nio.transport.TCPNIOConnection.onConnect(TCPNIOConnection.java:258) org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:552) org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.executeIoEvent(WorkerThreadIOStrategy.java:103) org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:89) org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:414) org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:383) org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:347) org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:278) org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) java.lang.Thread.run(Thread.java:745) dic 03, 2014 3:07:20 PM org.glassfish.grizzly.nio.transport.TCPNIOTransport configureChannel WARNING: GRIZZLY0006: Can not set SO_REUSEADDR to true java.net.SocketException: Invalid argument sun.nio.ch.Net.setIntOption0(Native Method) sun.nio.ch.Net.setSocketOption(Net.java:373) sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:189) sun.nio.ch.SocketAdaptor.setBooleanOption(SocketAdaptor.java:295) sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:413) org.glassfish.grizzly.nio.transport.TCPNIOTransport.configureChannel(TCPNIOTransport.java:451) org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnectorHandler.java:214) org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler$1.connected(TCPNIOConnectorHandler.java:154) org.glassfish.grizzly.nio.transport.TCPNIOConnection.onConnect(TCPNIOConnection.java:258) org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:552) org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.executeIoEvent(WorkerThreadIOStrategy.java:103) org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:89) org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:414) org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:383) org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:347) org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:278) org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) java.lang.Thread.run(Thread.java:745)
Story points: 8