set maxRunningTime=300 as default timeout in standalone scripts

This commit is contained in:
Norbert Renner 2015-04-03 11:44:49 +02:00
parent 4cde5ad261
commit f3d2500f3a
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,8 @@
REM BRouter standalone server
REM java -cp brouter.jar btools.brouter.RouteServer <segmentdir> <profile-map> <customprofiledir> <port> <maxthreads>
set JAVA_OPTS=-Xmx128M -Xms128M -Xmn8M
REM maxRunningTime is the request timeout in seconds, set to 0 to disable timeout
set JAVA_OPTS=-Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300
set CLASSPATH=../brouter.jar
java %JAVA_OPTS% -cp %CLASSPATH% btools.server.RouteServer ..\segments3 ..\profiles2 ..\customprofiles 17777 1

View file

@ -3,7 +3,8 @@
# BRouter standalone server
# java -cp brouter.jar btools.brouter.RouteServer <segmentdir> <profile-map> <customprofiledir> <port> <maxthreads>
JAVA_OPTS="-Xmx128M -Xms128M -Xmn8M"
# maxRunningTime is the request timeout in seconds, set to 0 to disable timeout
JAVA_OPTS="-Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300"
CLASSPATH=../brouter.jar
java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer ../segments3 ../profiles2 ../customprofiles 17777 1