thulab / iot-benchmark

IoT-benchmark is a tool for benchmarking TSDB in IoT scenario.
Apache License 2.0
180 stars 101 forks source link

Add some parameters before startup #365

Closed xiaoyekanren closed 1 year ago

xiaoyekanren commented 1 year ago

Add some parameters before startup:

usage: benchmark.sh [-cf configuration_file] [-heapsize HEAP_SIZE] [-maxheapsize MAX_HEAP_SIZE]
 -h           Show help.
 -cf          Specify configuration file.
 -heapsize    Specify HEAP_SIZE.
 -maxheapsize Specify MAX_HEAP_SIZE.
example: ./benchmark.sh -cf conf/config.properties -heapsize 1G -maxheapsize 2G

You can also set memory by changing the configuration file.

# Maximum heap size
#MAX_HEAP_SIZE="2G"
# Minimum heap size
#HEAP_NEWSIZE="2G"