Merge pull request #38 from nrenner/standalone-timeout

set default timeout in standalone scripts
This commit is contained in:
abrensch 2015-04-04 10:14:21 +02:00
commit 740d171813
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