mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-10 23:50:10 -04:00
Add scripts
This commit is contained in:
parent
ef2e3e593e
commit
d1bb37d2b9
2 changed files with 33 additions and 0 deletions
10
package/stresstest/copyDir.sh
Executable file
10
package/stresstest/copyDir.sh
Executable 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
|
23
package/stresstest/startnodes.sh
Executable file
23
package/stresstest/startnodes.sh
Executable 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}'`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue