-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathrun.sh
executable file
·26 lines (23 loc) · 871 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# Some useful options (these need to come before -jar)
#
# Listen on different port:
# -Dserver.port=80
#
# Show queries, responses, and time measurements
# -Dlogging.level.com.codefork.refine=DEBUG
#
# These are helpful for stabilizing the JVM's memory usage, which is
# useful for resource-constrained servers. 128M is a very safe number
# and can probably be lower. Setting it as the minimum also prevents
# the JVM from having to dynamically allocate memory, which takes time.
# -Xms128m -Xmx128m
JAR_PATH=`find target -type f -name "conciliator*.jar" -print`
if [[ $JAR_PATH == *$'\n'* ]];
then
echo ERROR: More than one jar file found in target/ directory.
echo Run \"mvn clean package\" then run this script again.
exit 1
fi
java -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx256m -Dlogging.level.com.codefork.refine=DEBUG -jar $JAR_PATH