You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/site/content/userguide/managing-domains/accessing-the-domain/wlst.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ You can use the `kubectl exec` command to start an interactive WLST session
20
20
within a pod or to remotely run a WLST script on a pod.
21
21
Typically, this is the preferred method.
22
22
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
+
23
28
For example, if a `domainUID` is `sample-domain1`,
24
29
its Administration Server is named `admin-server` and is configured with default port `7001`,
25
30
and its pods are running in namespace `sample-domain1-ns`,
Copy file name to clipboardExpand all lines: documentation/site/content/userguide/managing-domains/domain-resource.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ You can use the following environment variables to specify JVM memory and JVM op
231
231
*`JAVA_OPTIONS`: Java options for starting WebLogic Server.
232
232
*`USER_MEM_ARGS`: JVM memory arguments for starting WebLogic Server.
233
233
*`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`.
235
235
*`WLST_PROPERTIES`: System properties for WLST commands in introspector jobs or WebLogic Server instance containers.
236
236
*`WLST_EXTRA_PROPERTIES`: System properties appended to WLST_PROPERTIES for WLST commands in introspector jobs or WebLogic Server instance containers.
237
237
*`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
242
242
243
243
* The following behavior occurs depending on whether or not `NODEMGR_JAVA_OPTIONS` and `NODEMGR_MEM_ARGS` are defined:
244
244
* 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.
246
247
* 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.
247
248
* 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.
248
249
* 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