Hello Gatling Experts.
I need to check process, that downloads (*.mp4) file from remote machine trans-code it and downloads it to my computer.
When I use CURL in loop - it works fine (.Same if I use several browsers(chrome,Firefox)
But if I use Gatling(2.1.5 with jdk1.8.60) only single user lunched .
Below is my flow and part of log.
I also changed allowPoolingConnections = false in my gatling.conf file
but in logs I still found " Connection: keep-alive" in header
Any Thoughts ?
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.core.feeder.RecordSeqFeederBuilder
import java.util.UUID
class LoadTest extends Simulation{
val basehostUrL=""“192.30.252.153"”"
val httpProtocol = http
.baseURL(basehostUrL)
.userAgentHeader(""“Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"”")
.disableClientSharing
val action = http(“get file”)
.get("""/sandbox/aaa/fraidy/in/flow/download/test-convert.mp4?sourceURL=http://akstream2.iheart.com/WMG4/Thumb_Content/FullY_AAC/WMG/Feb15/022615/075679927354/resources/075679927354_00009_256.m4a?nga=20150911143153&track=30979203&player=eUdDcFZRWnBwSElVUHJnRVJ0dVFoQT09&env=live&sig=im_3_e8__8RBPPipStXHdBnMqQRxdfFcdmLavrAo52k&as=SIMPLE&rnga=20150911143153""")
val loadhttpGroups = group(“Load Flow”) {
during(2 minutes) {
exec(action)
.exec(flushSessionCookies)
.exec(flushCookieJar)
.exec(flushHttpCache)
}
}
val loadFlow = scenario(“Load Flow”).exec(loadhttpGroups)
setUp(loadFlow.inject(rampUsers(5) over(5 seconds)).protocols(httpProtocol))
}