mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-283 updating the method for managing the xmx and xms settings in setenv.sh
This commit is contained in:
@@ -5,16 +5,19 @@
|
|||||||
src: server.xml.j2
|
src: server.xml.j2
|
||||||
dest: "{{ atl_product_installation_versioned }}/apache-tomcat/conf/server.xml"
|
dest: "{{ atl_product_installation_versioned }}/apache-tomcat/conf/server.xml"
|
||||||
|
|
||||||
- name: Override JVM memory settings.
|
- name: Set the minimum heap size (Xms)
|
||||||
# Ugly but necessary as the product installs this file so we need to make the change here.
|
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
||||||
backrefs: true
|
regexp: '^(.*)Xmx(\\d+\\w)(\\s.*)$'
|
||||||
regexp: "^{{ item }}="
|
line: '\1Xms${atl_jvm_heap}\3'
|
||||||
line: "{{ item }}=\"{{ atl_jvm_heap }}\""
|
backrefs: yes
|
||||||
with_items:
|
|
||||||
- 'JVM_MINIMUM_MEMORY'
|
- name: Set the maxmimum heap size (Xmx)
|
||||||
- 'JVM_MAXIMUM_MEMORY'
|
lineinfile:
|
||||||
|
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
||||||
|
regexp: '^(.*)Xmx(\\d+\\w)(\\s.*)$'
|
||||||
|
line: '\1Xmx${xms}m\3'
|
||||||
|
backrefs: yes
|
||||||
|
|
||||||
- name: Set Crowd home directory in crowd-init.properties file
|
- name: Set Crowd home directory in crowd-init.properties file
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user