Out of memory error and the application server shut down

Phenomena: On the Solaris platform, WebLogic reports the out of memory error, and then shuts down. This is because the physical memory of the server is too low.

Solution: Increase the virtual memory of the server.

  1. For Windows, set the virtual memory to 2G;

  2. For Solaris, set the swap space to 2G.

    The commands to set swap on Solaris are:

    Mkfile /beaswap
    swap –a  /beaswap

    To add new swap space, this command must be run every time a Solaris server is restarted.