34 lines
1.3 KiB
Bash
34 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
SITE='relation_recommend'
|
|
|
|
#find ./target/classes -name "*.xml"|xargs rm -f
|
|
|
|
|
|
tmp='./bin/resources'
|
|
tmp='./target/classes':$tmp
|
|
tmp='./target/recommendsys-1.0-SNAPSHOT-jar-with-dependencies-without-resources/*':$tmp
|
|
|
|
CLASSPATH=$tmp:$CLASSPATH
|
|
|
|
#JAVA_OPTS="-Xms256m -Xmx256m -Xmn128m"
|
|
|
|
echo $CLASSPATH
|
|
|
|
for ((i=5000; i<50001; i=i+5000)); do
|
|
if [[ $i <= 15000 || $i == 30000 || $i == 40000 ]]; then
|
|
java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount $((i-4899)) $i >>log/rela_$i.log 2>&1 &
|
|
continue
|
|
elif [[ $i == 20000 ]]; then
|
|
java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount $((i-4999)) 18000 >>log/rela_18000.log 2>&1 &
|
|
java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount 18101 $i >>log/rela_$i.log 2>&1 &
|
|
continue
|
|
elif [[ $i == 50000 ]]; then
|
|
java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount 45001 46131 >>log/rela_46131.log 2>&1 &
|
|
else
|
|
java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount $((i-4999)) $i >>log/rela_$i.log 2>&1 &
|
|
fi
|
|
# java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount $((i-4999)) $i >>log/rela_$i.log 2>&1 &
|
|
done
|
|
|
|
# java -DlogFilePath=${SITE} -classpath $CLASSPATH com.ossean.main.RelationCount 35001 46131 >>log/rela_46131.log 2>&1 & |