Skip to content

Commit 3e44ced

Browse files
committed
Merge branch 'rm/nm-memory-settings' into 'release/3.4'
update NM args See merge request weblogic-cloud/weblogic-kubernetes-operator!4530
2 parents e42f282 + d0b7cfe commit 3e44ced

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

documentation/site/content/userguide/managing-domains/accessing-the-domain/wlst.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ You can use the `kubectl exec` command to start an interactive WLST session
2020
within a pod or to remotely run a WLST script on a pod.
2121
Typically, this is the preferred method.
2222

23+
**NOTE**: The WLST script uses the value of the environment variable `USER_MEM_ARGS` to control the heap settings of the JVM process. If you have set the environment variable
24+
`USER_MEM_ARGS` in the domain resource YAML, the WLST process will inherit the memory settings. For example,
25+
if you have the `USER_MEM_ARGS` value set to `-Xms2048m -Xmx2048m`, the WebLogic Server JAVA process will use this heap settings, and if you run the WLST script in the server pod,
26+
the WLST script JAVA process will also use this heap settings. This may cause unexpected behavior in the server pod due to additional memory usage.
27+
2328
For example, if a `domainUID` is `sample-domain1`,
2429
its Administration Server is named `admin-server` and is configured with default port `7001`,
2530
and its pods are running in namespace `sample-domain1-ns`,

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

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

243243
* The following behavior occurs depending on whether or not `NODEMGR_JAVA_OPTIONS` and `NODEMGR_MEM_ARGS` are defined:
244244
* 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.
245-
* 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 YAML file using the `env` attribute under the `serverPod` configuration.
245+
* 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.
246+
* 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.
246247
* 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 YAML file using the `env` attribute under the `serverPod` configuration.
247248
* 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.
248249
* 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)