update server options

This commit is contained in:
vcoppe 2022-04-14 16:29:07 +02:00
parent 6794ef320e
commit c562d58ca9

View file

@ -5,7 +5,7 @@ cd "$(dirname "$0")"
# java -cp brouter.jar btools.brouter.RouteServer <segmentdir> <profile-map> <customprofiledir> <port> <maxthreads> [bindaddress] # java -cp brouter.jar btools.brouter.RouteServer <segmentdir> <profile-map> <customprofiledir> <port> <maxthreads> [bindaddress]
# maxRunningTime is the request timeout in seconds, set to 0 to disable timeout # 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 # If paths are unset, first search in locations matching the directory structure
# as found in the official BRouter zip archive # as found in the official BRouter zip archive
@ -28,4 +28,4 @@ if [ ! -e "$CUSTOMPROFILESPATH" ]; then
CUSTOMPROFILESPATH="../customprofiles" CUSTOMPROFILESPATH="../customprofiles"
fi 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