Menu

LoadMonger Command Line

Stephen Owens

Here is a typical command script used to launch loadmonger:

JAR=/usr/local/lib/java/LoadMonger.jar
CONFIG=/home/steveo43/loadTests/loadMonger/testconfig1.cfg
GENERATOR_NAME=myhostname
LOG_DIR=$2

java -Xmx1024M -jar $JAR $CONFIG $GENERATOR_NAME $LOG_DIR token=$1

The command line talked about in this reference consists of the following portions of the last line in the above script:
$CONFIG - references the test configuration JSON used for the test.
$GENERATOR_NAME - a unique name used in the metrics logging to distinguish lines generated on one generator host from lines generated on another host. This value should be unique to each running instance of LoadMonger used for a specific test. This will allow the metrics file outputs to be aggregated from multiple generator instances into a single mine-able data file.
$LOG_DIR - specifies the directory into which output files are written.

The remainder of the command line consists of name value entries such as the following:

token=foo

Each value passed in this manner can be accessed from within the test definition file using a value template such as the following ${token}

You can use quotes around the value if the value contains quotes for example:

token=\"foo\" - this works on UNIX and other POSIX systems, not sure if it will work on Windows.


MongoDB Logo MongoDB