pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31944 )

Change subject: Limit maximum number of open file descriptors to overcome titan 
bug
......................................................................

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
---
M start-testsuite.sh
1 file changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, but someone else must approve
  osmith: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved




diff --git a/start-testsuite.sh b/start-testsuite.sh
index a1e753d..4b88501 100755
--- a/start-testsuite.sh
+++ b/start-testsuite.sh
@@ -45,6 +45,10 @@
 #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}"

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31944
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Iafa8cfa769386e63e1d879d8cce6e24b244d9a6f
Gerrit-Change-Number: 31944
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to