JMeterのリモートクライアントを使ったテストで割り当てるメモリを増やす方法
割り当てられるメモリが不足すると,以下のようなエラーがログに出力される.
ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.OutOfMemoryError: Java heap space
これを回避するには,クライアントマシンにある JMETER_HOME/bin/jmeter を開き,
# This is the base heap size -- you may increase or decrease it to fit your
# system's memory availablity:
# HEAP="-Xms256m -Xmx256m"
という部分があるので,"HEAP"の行を適当に修正すればよい.
例えば,こんな感じ.
# This is the base heap size -- you may increase or decrease it to fit your
# system's memory availablity:
# HEAP="-Xms256m -Xmx256m"
HEAP="-Xms256m -Xmx1024m"