aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-03-01 19:02:48 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2023-03-16 12:07:41 +0100
commitf4986e86e49276189c0570aa6205e6e58bc4c699 (patch)
tree902cc448e916f584644ece5637da4a684a49cbe9
parenta1af9460eadaedd154811d793d9de0882827e408 (diff)
Limit maximum number of open file descriptors to overcome titan bug
Without this, titan tries to allocate too much memory and triggers OOM under some systems (happening here with 16GB of RAM). Related: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/690 Change-Id: Iafa8cfa769386e63e1d879d8cce6e24b244d9a6f
-rwxr-xr-xstart-testsuite.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/start-testsuite.sh b/start-testsuite.sh
index a1e753d0..4b88501a 100755
--- a/start-testsuite.sh
+++ b/start-testsuite.sh
@@ -45,6 +45,10 @@ fi
#TITAN_LIBRARY_PATH="$TTCN3_DIR/lib"
#TTCN3_BIN_DIR="$TTCN3_DIR/bin"
+# Limit max num of open file descriptors to workaround titan.core bug:
+# https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/690
+ulimit -n 100000
+
# below is for the debian packages
TTCN3_BIN_DIR="${TTCN3_BIN_DIR:-/usr/bin}"
TITAN_LIBRARY_PATH="${TITAN_LIBRARY_PATH:-/usr/lib/titan:/usr/ttcn3/lib}"