Skip to content

Commit 96bce49

Browse files
committed
Merge branch 'update-doc-nm-mem-args' into 'main'
Add notes on NODE_MEM_ARGS memory settings if USER_MEM_ARGS is also defined. See merge request weblogic-cloud/weblogic-kubernetes-operator!4529
2 parents 67fa764 + 0e74651 commit 96bce49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

documentation/site/content/managing-domains/domain-resource.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ You can use the following environment variables to specify JVM memory and JVM op
236236
* `JAVA_OPTIONS`: Java options for starting WebLogic Server.
237237
* `USER_MEM_ARGS`: JVM memory arguments for starting WebLogic Server.
238238
* `NODEMGR_JAVA_OPTIONS`: Java options for starting a Node Manager instance.
239-
* `NODEMGR_MEM_ARGS`: JVM memory arguments for starting a Node Manager instance.
239+
* `NODEMGR_MEM_ARGS`: JVM memory arguments for starting a Node Manager instance; this will take precedence over `JAVA_OPTIONS` and `USER_MEM_ARGS`.
240240
* `WLST_PROPERTIES`: System properties for WLST commands in introspector jobs or WebLogic Server instance containers.
241241
* `WLST_EXTRA_PROPERTIES`: System properties appended to WLST_PROPERTIES for WLST commands in introspector jobs or WebLogic Server instance containers.
242242
* `WLSDEPLOY_PROPERTIES`: System properties for WebLogic Deploy Tooling commands during Model in Image introspector jobs or WebLogic Server instance containers.
@@ -247,7 +247,8 @@ You can use the following environment variables to specify JVM memory and JVM op
247247

248248
* The following behavior occurs depending on whether or not `NODEMGR_JAVA_OPTIONS` and `NODEMGR_MEM_ARGS` are defined:
249249
* If `NODEMGR_JAVA_OPTIONS` is not defined and `JAVA_OPTIONS` is defined, then the `JAVA_OPTIONS` value will be applied to the Node Manager instance.
250-
* If `NODEMGR_MEM_ARGS` is not defined, then default memory and Java security property values (`-Xms64m -Xmx100m -Djava.security.egd=file:/dev/./urandom`) will be applied to the Node Manager instance. It can be explicitly set to another value in your Domain or Cluster YAML file using the `env` attribute under the `serverPod` configuration.
250+
* If `NODEMGR_MEM_ARGS` is not defined and `USER_MEM_ARGS` is defined, then the `USER_MEM_ARGS` value will be applied to the Node Manager instance.
251+
* If nothing else is specified, then the default Java property values (`-Xms64m -Xmx100m -Djava.security.egd=file:/dev/./urandom`) will be applied to the Node Manager instance.
251252
* The `USER_MEM_ARGS` and `WLST_EXTRA_PROPERTIES` environment variables both default to `-Djava.security.egd=file:/dev/./urandom` in all WebLogic Server pods and the WebLogic introspection job. They can be explicitly set to another value in your Domain or Cluster YAML file using the `env` attribute under the `serverPod` configuration.
252253
* Notice that the `NODEMGR_MEM_ARGS`, `USER_MEM_ARGS`, and `WLST_EXTRA_PROPERTIES` environment variables all include `-Djava.security.egd=file:/dev/./urandom` by default. This helps to speed up the Node Manager and WebLogic Server startup on systems with low entropy, plus similarly helps to speed up introspection job usage of the WLST `encrypt` command.
253254
* For a detailed description of Java and pod memory tuning see the [Pod memory and CPU resources FAQ]({{<relref "/faq/resource-settings.md">}}).

0 commit comments

Comments
 (0)