val nbUsers = Integer.getInteger("users", 1)
val myRamp = java.lang.Long.getLong("ramp", 0L)
val myIter = Integer.getInteger("iter", 1)
val myUrl = System.getProperty("url")
val pgReqFeeder = ssv("requestBody.ssv").circular
val httpConf = httpConfig
.baseURL(myUrl)
.acceptHeader("*/*")
val scn = scenario("Performance Testing")
.repeat(myIter) {
feed(RequestFile)
.exec(
http("POST")
.post("/something.do")
.header("Content-Type", "application/json")
.body("${REQUESTBODY}")
.asJSON
.check(status.is(200)))
}
...
JAVA_OPTS="-Dusers=30 -Diter=100 -Durl=http://<ServiceUrl>:9000 -Xms4096m -Xmx4096m" ./bin/gatling.sh -s basic.Perfloadfeeder -nr
./random.sh | \
curl -i \
-k \
-s -w "%{http_code} %{http_connect} %{time_namelookup} %{time_connect} %{time_appconnect} %{time_pretransfer} %{time_starttransfer} %{num_connects} %{speed_upload} %{speed_download} %{time_total}\n" \
-o /dev/null \
-H 'Accept: */*' \
-H "Content-Type: application/json" \
"http://<Service Url>:9000/something.do" \
-d @-
done
Tool: Curl Script GATLING GATLING
#Concurrent Users: 30 30 1
#Iterations 100 100 10
Start Time: 1404644781 1404648014
End Time: 1404644867 1404648454
Total Requests: 3000 3000 10
MIN(s): 0.129 0.08 0.240
MAX(s): 2.390 7.75 0.380
MEAN(s): 0.735419 4.204 0.318
STD DEV: 0.319655 2.221 0.048
ulimit -n --> 524288
I don't think the test needs too many ports (Only 30 concurrent users).
I would appreciate your help in figuring why i have such poor performance with gatling.
Thanks,
Vikram
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
head -2 user-files/data/pgRequest.ssv (Total Records: 96, Total No of chars in file: 1022406, Approx size of 1 request body = 8K)
REQUESTBODY;NONE
"{""Field"":""Value"", ""Field1"":""Value"", ""Field3"": {""F4"": ""V4"", ""F5"": ""V5"" ....} ...}";
head -1 pgRequest.txt # -- 1 JSON BODY per line (Total Records: 95, Total No of chars in file: 923781C, Approx. size of 1 request body = 8K)
{"Field":"Value", "Field1":"Value", "Field3": {"F4": "V4", "F5": "V5" ....} ...}
Let me know your findings.