refactor: 启动Jmeter容器的时候设置HEAP

This commit is contained in:
Captain.B 2020-08-14 15:36:44 +08:00
parent 26f29ade01
commit c34fb465d0
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
export HEAP=$(cat /proc/meminfo | grep MemTotal | awk '{ mem=int($2/1024/1024 * 3/4 + 0.5); metasize=int(mem/4+0.5)"g"; if(mem<1) mem=1; if (metasize == "0g") metasize="256m"; HEAP="-Xms"mem"g -Xmx"mem"g -XX:MaxMetaspaceSize="metasize; print HEAP }')
for file in ${TESTS_DIR}/*.jmx; do
echo "one shot run."
jmeter -n -t ${file} -Jserver.rmi.ssl.disable=${SSL_DISABLED}
done