Skip to content

Commit 2827bae

Browse files
committed
Merge branch 'owls-131301-add-nmprops-env' into 'main'
1 parent 253422e commit 2827bae

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ You can use the following environment variables to specify JVM memory and JVM op
243243
* `PRE_CLASSPATH`: Path(s) that are *prepended* to the WebLogic Server system classpath; delimit multiple paths with a colon `:`.
244244
* `CLASSPATH`: Path(s) that are *appended* to the WebLogic Server system classpath; delimit multiple paths with a colon `:`.
245245

246+
### Node Manager environment variables
247+
248+
You can use the following environment variables to specify the logging files limit.
249+
250+
* `NODEMGR_LOG_FILE_MAX`: Maximum size of the Node Manager Log specified as an integer. When this limit is reached, a new log file is started. Default: 0, no limit.
251+
* `NODEMGR_LOG_LEVEL`: Severity level of logging used for the Node Manager log. Node Manager uses the standard logging levels from the java.util.logging.level package. Default: FINEST.
252+
* `NODEMGR_LOG_COUNT`: Maximum number of log files to create when LogLimit is exceeded. Default: 1.
253+
246254
**NOTES**:
247255

248256
* The following behavior occurs depending on whether or not `NODEMGR_JAVA_OPTIONS` and `NODEMGR_MEM_ARGS` are defined:

documentation/site/content/managing-domains/manage-domains.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ Be aware of the following important considerations for WebLogic domains running
163163

164164
For more information, see [JVM memory and Java option environment variables]({{< relref "/managing-domains/domain-resource#jvm-memory-and-java-option-environment-variables" >}}).
165165

166+
* _Node Manager environment variables:_ You can use the following environment variables to specify the logging files limit.
167+
168+
* `NODEMGR_LOG_FILE_MAX`: Maximum size of the Node Manager Log specified as an integer. When this limit is reached, a new log file is started. Default: 0, no limit.
169+
* `NODEMGR_LOG_LEVEL`: Severity level of logging used for the Node Manager log. Node Manager uses the standard logging levels from the java.util.logging.level package. Default: FINEST.
170+
* `NODEMGR_LOG_COUNT`: Maximum number of log files to create when LogLimit is exceeded. Default: 1.
171+
166172

167173
The following features are **not** certified or supported in this release:
168174

operator/src/main/resources/scripts/startNodeManager.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
# ${DOMAIN_UID}/${SERVER_NAME}_nodemanager.out
2828
# Default:
2929
# Use LOG_HOME. If LOG_HOME not set, use NODEMGR_HOME.
30-
# NODEMGR_LOG_FILE_MAX = max NM .log and .out files to keep around (default=11)
30+
# NODEMGR_LOG_FILE_MAX = Maximum size of the Node Manager Log specified as an integer.
31+
# When this limit is reached, a new log file is started. default 0, no limit.
32+
# NODEMGR_LOG_LEVEL =Severity level of logging used for the Node Manager log. Node Manager uses the standard
33+
# logging levels from the java.util.logging.level package. default FINEST.
34+
# NODEMGR_LOG_COUNT = Maximum number of log files to create when LogLimit is exceeded. default 1.
3135
#
3236
# ADMIN_PORT_SECURE = "true" if the admin protocol is secure. Default is false
3337
#
@@ -64,6 +68,9 @@ stm_script=${WL_HOME}/server/bin/startNodeManager.sh
6468

6569
SERVER_NAME=${SERVER_NAME:-introspector}
6670
ADMIN_PORT_SECURE=${ADMIN_PORT_SECURE:-false}
71+
NM_LOG_LIMIT=${NODEMGR_LOG_FILE_MAX:-0}
72+
NM_LOG_LEVEL=${NODEMGR_LOG_LEVEL:-FINEST}
73+
NM_LOG_COUNT=${NODEMGR_LOG_COUNT:-1}
6774

6875
trace "Starting node manager for domain-uid='$DOMAIN_UID' and server='$SERVER_NAME'."
6976

@@ -241,9 +248,9 @@ cat <<EOF > ${nm_props_file}
241248
LogToStderr=true
242249
LogFormatter=weblogic.nodemanager.server.LogFormatter
243250
LogAppend=true
244-
LogLimit=0
245-
LogLevel=FINEST
246-
LogCount=1
251+
LogLimit=${NM_LOG_LIMIT}
252+
LogLevel=${NM_LOG_LEVEL}
253+
LogCount=${NM_LOG_COUNT}
247254
248255
EOF
249256

0 commit comments

Comments
 (0)