Dear Gatlers,
Was a bit disappointed by the way Gatling responded to my stress test for one of my play applications.
The test bombed with "java.net.ConnectException: Connection refused" where as my play netty server was keeping good health.
My lap configurations are as follows:
OS : Windows 7 Enterprise 32-bit
Processor : Intel Core i5 @ 2.5 Ghz
Core # : 2
Thread # by each core : 4
Memory: 4gb ( 3.42 gb usable)
My Fetch.scala are as follows:
***
val httpConf = httpConfig
.acceptCharsetHeader("ISO-8859-1,utf-8;q=0.7,*;q=0.7")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3")
.disableFollowRedirect
.disableCaching
val scn = scenario("Scenario name")
.exec(http("FetchPerformance")
.get("/d")
setUp(scn.users(10000).ramp(1).protocolConfig(httpConf))
***
I use the default akka configurations that comes with Gatling 1.5.2
My gatling console spits out the following messages :
19:58:50.380 [WARN ] c.e.e.g.h.a.GatlingAsyncHandler - Request 'FetchContactPerformance' failed
java.net.ConnectException: Connection refused: no further information: localhost/127.0.0.1:9000 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_09]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) ~[na:1.7.0_09]
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) [netty-3.6.6.Final.jar:na]
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103) ~[async-http-client-1.7.18.20130621.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:109) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.6.6.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.6.6.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_09]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_09]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09]
Can anyone help me out to resolve this issue ??
Cheers,
Ajay