tomcat: put explicit ulitmit commands inside the tomcat instance defaults. See https://support.d4science.org/issues/16588

This commit is contained in:
Andrea Dell'Amico 2019-04-19 17:53:57 +02:00
parent 3de842913e
commit 843d5c32b1
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
{% if limits_nofile_value is defined %}
ulimit -Hn {{ limits_nofile_value }}
ulimit -Sn {{ limits_nofile_value }}
{% endif %}
TOMCAT_USER={{ item.user }}
TOMCAT_GROUP={{ item.user }}
JAVA_HOME={{ item.java_home }}

View File

@ -1,3 +1,8 @@
{% if limits_nofile_value is defined %}
ulimit -Hn {{ limits_nofile_value }}
ulimit -Sn {{ limits_nofile_value }}
{% endif %}
# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat{{ tomcat_version}}.
TOMCAT{{ tomcat_version}}_USER={{ tomcat_user }}