diff --git a/misc/scripts/standalone/server.sh b/misc/scripts/standalone/server.sh index 83513a7..82d6d8d 100755 --- a/misc/scripts/standalone/server.sh +++ b/misc/scripts/standalone/server.sh @@ -5,7 +5,7 @@ cd "$(dirname "$0")" # java -cp brouter.jar btools.brouter.RouteServer [bindaddress] # maxRunningTime is the request timeout in seconds, set to 0 to disable timeout -JAVA_OPTS="-Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300" +JAVA_OPTS="-Xmx256M -Xms16g -Xmn256M -DmaxRunningTime=300" # If paths are unset, first search in locations matching the directory structure # as found in the official BRouter zip archive @@ -28,4 +28,4 @@ if [ ! -e "$CUSTOMPROFILESPATH" ]; then CUSTOMPROFILESPATH="../customprofiles" fi -java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer "$SEGMENTSPATH" "$PROFILESPATH" "$CUSTOMPROFILESPATH" 17777 1 $BINDADDRESS +java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer "$SEGMENTSPATH" "$PROFILESPATH" "$CUSTOMPROFILESPATH" 17777 12 $BINDADDRESS