Weblogic Exit on out of memory

If weblogic server is crashing frequently with out of memory errors below work around can be helpful till root cause of issue is found.

  1. Configure node manager with CrashRecoveryEnabled=true
  2. Configure weblogic for exit on out of memory as given below

Navigate to $IDMDomain/bin
Add -XX:+ExitOnOutOfMemoryError parameter
a) Edit startManagedWebLogic.sh
Add below lines before export JAVA_OPTION
b) Open weblogic console, navigate to Home >Summary of Servers >managed_server>Configuration>Server start
Add below line in argument
Restart managed server

So when ever there is out of memory error, on first occurrence weblogic server will exit and node manager will restart the server. However, you must investigate for root cause of out of memory error for permanent fix.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s