-
Notifications
You must be signed in to change notification settings - Fork 216
OWLS-93551: Changes to expose the server startup properties and add -XX:+CrashOnOutOfMemoryError
to JAVA_OPTIONS.
#3706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…roperties and add `-XX:+CrashOnOutOfMemoryError` to JAVA_OPTIONS.
|
||
WebLogic Server provides a self-health monitoring feature to improve the reliability and availability of server instances in a domain. If an individual subsystem determines that it can no longer operate consistently and reliably, it registers its health state as `FAILED` with the host server. Each WebLogic Server instance, in turn, checks the health state of its registered subsystems to determine its overall viability. If one or more of its critical subsystems have reached the `FAILED` state, the server instance marks its health state as `FAILED` to indicate that it cannot reliably host an application. | ||
|
||
Using Node Manager, server self-health monitoring enables the automatic restart of the failed server instances. The operator configures the Node Manager to restart the failed server two times within a one-hour interval. It does this by setting the value of the `RestartMax` property (in the [server startup properties](https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/nodem/java_nodemgr.html#GUID-26475256-2830-434B-B31F-A2D06F48B244) file) to `2` and the value of the `RestartInterval` property to `3600`. You can change the number of times the Node Manager will attempt to restart the server in a given interval by setting the `RESTART_MAX` and `RESTART_INTERVAL` environment variables in the domain resource using the `env` attribute under the `serverPod` element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the failed server two times -> the failed server a maximum of two times
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
@@ -286,6 +286,7 @@ if [[ "${KUBERNETES_PLATFORM^^}" == "OPENSHIFT" ]]; then | |||
fi | |||
|
|||
fi | |||
JAVA_OPTIONS="-XX:+CrashOnOutOfMemoryError $JAVA_OPTIONS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this may need an "export"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, shall we provide a way to remove this "-XX" just in case it has an unancticipated problem? As in something like:
export JAVA_OPTIONS="${JAVA_XX_OPTIONS:--XX:+CrashOnOutOfMemoryError} $JAVA_OPTIONS"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, changed. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One edit required in the section heading, otherwise ok.
@@ -78,6 +78,26 @@ The following operator-populated environment variables are available for use in | |||
|
|||
* A custom liveness probe must not fail (exit non-zero) when the WebLogic Server instance itself is unavailable. This could be the case when the WebLogic Server instance is booting or about to boot. | |||
|
|||
### Automatic Restart of Failed Server Instances by Node Manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic Restart of Failed Server Instances by Node Manager -> Automatic restart of failed server instances by Node Manager
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in a1b5893. Thanks.
Kudos, SonarCloud Quality Gate passed! |
…-XX:+CrashOnOutOfMemoryError` to JAVA_OPTIONS. (oracle#3706) * Changes to expose the RestartMax and RestartInterval server startup properties and add `-XX:+CrashOnOutOfMemoryError` to JAVA_OPTIONS.
…-XX:+CrashOnOutOfMemoryError` to JAVA_OPTIONS. (#3706) * Changes to expose the RestartMax and RestartInterval server startup properties and add `-XX:+CrashOnOutOfMemoryError` to JAVA_OPTIONS.
OWLS-93551 - Changes to expose the
RestartMax
andRestartInterval
server startup properties through environment variables and add-XX:+CrashOnOutOfMemoryError
to the Node Manager and WebLogic server java command line.Integration test run - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/14243/