Skip to content

Commit b9acabc

Browse files
committed
Handle increased thread load
1 parent e5ce7fa commit b9acabc

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packaging/etc/maps.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Group=mapsmessaging
1717
LimitNOFILE=65535
1818
TimeoutStartSec=15s
1919
TimeoutStopSec=10s
20+
TasksMax=8192
2021

2122
[Install]
2223
WantedBy=multi-user.target

src/main/scripts/start.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ set "CLASSPATH=%MAPS_CONF%;%MAPS_LIB%\maps-%VERSION%.jar;%MAPS_LIB%\*"
5555

5656
:loop
5757
:: Now start the daemon
58-
java -classpath %CLASSPATH% %JAVA_OPTS% ^
58+
java -Xss256k ^
59+
-classpath %CLASSPATH% %JAVA_OPTS% ^
5960
-DUSE_UUID=false ^
6061
-DConsulUrl="%CONSUL_URL%" ^
6162
-DConsulPath="%CONSUL_PATH%" ^

src/main/scripts/start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export LD_LIBRARY_PATH=$MAPS_LIB:$LD_LIBRARY_PATH
7171
# Loop to restart server on specific exit code
7272
#
7373
while true; do
74-
java -classpath $CLASSPATH $JAVA_OPTS \
74+
java -Xss256k \
75+
-classpath $CLASSPATH $JAVA_OPTS \
7576
-DUSE_UUID=false \
7677
-DConsulUrl="${CONSUL_URL}" \
7778
-DConsulPath="${CONSUL_PATH}" \

src/main/scripts/startDocker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ done
6363

6464
#
6565
# Now start the the daemon
66-
java -classpath $CLASSPATH $JAVA_OPTS \
66+
java -Xss256k \
67+
-classpath $CLASSPATH $JAVA_OPTS \
6768
-DUSE_UUID=false \
6869
-DConsulUrl="${CONSUL_URL}" \
6970
-DConsulPath="${CONSUL_PATH}" \

0 commit comments

Comments
 (0)