Providing more memory on Oracle WebLogic Server

If you experience core memory dumps or Java out-of-memory errors when a Decision Server module is running, you can make more memory available to your application server.

Symptoms

You experience core dumps or Java™ out-of-memory errors when the application is running.

Environment

The heap size depends on the application architecture and on the number of memory-intensive processes that run on the host system. Stress-test your applications to determine the appropriate heap size for the environment.

Resolving the problem

Procedure

To increase the WebLogic Server application server memory settings:

  1. Stop your application server.
  2. Open the startWebLogic script file.
  3. Find the following line and alter the values to suit your server usage. You can override the default heap size by using the -Xms and -Xmx switches to specify the initial and maximum sizes. This example also sets the permanent generation heap to a maximum value of 128 MB.
    %JAVA_HOME%\bin java -Xms128m -Xmx512m -XX:MaxPermSize=128m
    For details for the heap size, consult the Oracle WebLogic Server product documentation.
  4. Save the file and restart the application server.