diff --git a/templates/common/run_icon.sh b/templates/common/run_icon.sh
index 3215e74460d810cb3878feed8c15368bf1bc7017..1d7ecc6a51a96a2cd0391e44bfe5e3a6335fa8ae 100644
--- a/templates/common/run_icon.sh
+++ b/templates/common/run_icon.sh
@@ -22,5 +22,8 @@ spack load --first icon-nwp@%ICON_VERSION%
 # Set environment variable for eccodes-dwd definitions:
 source ${WORKDIR}/eccodes_defs.env
 
+# Increase stack size limit
+ulimit -s unlimited
+
 # Run icon
 srun icon