Skip to content

Passing parameters

slandelle edited this page · 3 revisions

One might want to pass parameters from the command line to the Simulation, for example the number of users, the duration of the ramp...

This can be done very easily with additional JAVA_OPTIONS in the launch script:

JAVA_OPTS="-Dusers=500 -Dramp=3600"

val nbUsers = Integer.getInteger("users", 1)
val myRamp  = Integer.getInteger("ramp", 0)
List(scn.configure.users(nbUsers).ramp(myRamp))
Something went wrong with that request. Please try again.