JVM options - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

Each Java based service deployed by the playbook is configured with some default settings, including memory settings. The defaults are defined in the roles’ specific default variables (for an example, see the default settings for the repository) so they can be overridden in the inventory_file using the right scope. For example, to override the JAVA_OPTS environment variable for the All-In-One Transform Engine place the following in the inventory file:

---
all:
  children:
    transformers:
      tengine_environment:
        JAVA_OPTS:
          - -Xms512m
          - -Xmx1g
          - $JAVA_OPTS

All the _environment variables defined for the roles are dictionaries, and all their keys are added to the relevant components’ start script. This allows you to define any number of environment variables. Key values are a list of strings to allow for easier manipulation. When overriding the default environment variables you should make sure you’re not retiring important ones, so always take a look at the https://github.com/Alfresco/alfresco-ansible-deployment/blob/master/ROLE_NAME/defaults/main.yml file first.