Update server.sh

This commit is contained in:
vcoppe 2025-03-09 11:10:59 +01:00 committed by GitHub
parent 23c19d5014
commit fade673ac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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="-Xmx16g -Xms256M -Xmn256M -DmaxRunningTime=300" JAVA_OPTS="-Xmx40g -Xms256M -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 12 $BINDADDRESS java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer "$SEGMENTSPATH" "$PROFILESPATH" "$CUSTOMPROFILESPATH" 17777 16 $BINDADDRESS