Skip to content

Possible errors in the benchmark scripts #1

@kvietmeier

Description

@kvietmeier

I was trying to run the scripts and kept getting a syntax error calling out the server option.

It looks like the script was doing a simple "cat" of the .vdbhostnames file and putting them on the commandline separated by spaces.

Adding this fixed it -
HOSTS=$(tr '\n' ',' < ${HOME}/.vdbhostnames | sed 's/,$//')

Now use:
java ${JVMOPTS} -jar CreateChargingDemoData.jar $HOSTS $USERCOUNT $TPMS $MAX_CREDIT

And it will correctly run the commands on all clusters nodes which I assume is the desired outcoome.

Also - in "runbenchmark.sh" these lines won't actually kill all of the running processes because a new one gets spawned for every iteration. Not sure how to safely kill them all since you can't just kill "java". I think we would need to loop through max-min/iteration times and just keep killing.

kill -9 "ps -deaf | grep ChargingDemoKVStore.jar | grep -v grep | awk '{ print $2 }'" 2> /dev/null
kill -9 "ps -deaf | grep ChargingDemoTransactions.jar | grep -v grep | awk '{ print $2 }'" 2> /dev/null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions