Set the JVM Arguments Definition

To explicitly set the Java Virtual Machine (JVM) heap size in the WebLogic Server pods that are created, modify the domain and specify the JVM settings in the domain YAML file.

To set the JVM heap size:

  1. Access the administration compute instance for your stack.
  2. Modify the domain using the kubectl command.
    kubectl edit domain <domain_name> -n <domain-namespace> -o yaml

    This command opens the Domain definition in an editor.

  3. Specify the following configuration for the USER_MEM_ARGS variable:
    name: USER_MEM_ARGS
    value: '-Xms256M -Xmx512M -XX:+UseG1GC '