From 386ca6848ead83ded9cba66299fb58a001f86a00 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 23 Dec 2024 09:27:23 +0300 Subject: [PATCH] Add size limit hs_err file --- src/main/server/start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/server/start.sh b/src/main/server/start.sh index 11cbf0af6..7e907e0f1 100644 --- a/src/main/server/start.sh +++ b/src/main/server/start.sh @@ -38,6 +38,9 @@ # If Memory usage is more than this value, server reports highResourceUsage and does not allow publish or play # Example usage: ./start.sh -e 60 +# Stop hs_err_pid.log if its size exceeds 1GB to prevent system issues. +ulimit -f 1048576 + if [ -z "$RED5_HOME" ]; then BASEDIR=$(dirname "$0") cd $BASEDIR