Add scripts

This commit is contained in:
Manfred Karrer 2016-06-09 20:36:58 +02:00
parent ef2e3e593e
commit d1bb37d2b9
2 changed files with 33 additions and 0 deletions

10
package/stresstest/copyDir.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cd /Users/mk/Library/Application\ Support
for i in `seq 101 500`;
do
dir=BS_$i
mkdir $dir
cp -av BS_/* $dir/
done

View File

@ -0,0 +1,23 @@
#!/bin/bash
cd ../../seednode/target
logpath=/Users/mk/Documents/_intellij/bitsquare
nohup java -jar SeedNode.jar hlitt7z4bec4kdh4.onion:8000 0 500 >/dev/null 2>$logpath/stresstest_seednode.log &
sleep 40
cd ../../gui/target
nohup java -jar shaded.jar --app.name=BS_arb --maxConnections=500 >/dev/null 2>$logpath/stresstest_arb.log &
sleep 40
delay=5
for i in `seq 1 10`;
do
echo $i
nohup java -jar shaded.jar --app.name=BS_$i --maxConnections=500 >/dev/null 2>$logpath/stresstest_$i.log &
sleep $delay
done
# kill `ps -ef | grep java | grep -v grep | awk '{print $2}'`