22 lines
702 B
Bash
22 lines
702 B
Bash
#!/bin/bash
|
|
|
|
find ./target/classes -name "*.properties"|xargs rm -f
|
|
find ./target/classes -name "*.xml"|xargs rm -f
|
|
find ./target/classes -name "*.dic"|xargs rm -f
|
|
|
|
#export CLASSPATH=$CURR_DIR/lib:$CURR_DIR:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
|
|
|
|
tmp='./bin/resources'
|
|
tmp='./target/classes':$tmp
|
|
tmp='./target/match_program-0.0.1-SNAPSHOT-jar-with-dependencies-without-resources/*':$tmp
|
|
|
|
CLASSPATH=$tmp:$CLASSPATH
|
|
|
|
|
|
echo $CLASSPATH
|
|
JVM_ARGS="-Xmn98m -Xmx1024m -Xms512m -XX:NewRatio=4 -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=2 -XX:-UseGCOverheadLimit"
|
|
#echo JVM_ARGS=$JVM_ARGS
|
|
#ulimit -n 400000
|
|
#echo "" > nohup.out
|
|
java $JVM_ARGS -classpath $CLASSPATH com.ossean.match.main.Main >>log/info.log 2>&1 &
|