Troubleshooting: Problems with JVM and out of memory errors

On Solaris, a runtime process fails and you receive an out of memory error.


When you attempt to perform at operation such enabling a feature or adding a shopping cart, JVM is terminated. You also receive an error message at WAS_installdir\profiles\demo\logs\server1\SystemOut.log similar to the following:
java.lang.OutOfMemoryError: PermGen space


You need to set the value of MaxPermSize variable to 384M or larger

  1. Starting and stopping quick reference.
  2. Open the WebSphere Integrated Solutions Console.
  3. Click Servers > Application servers > server1 > Process definition > Java virtual machine.
  4. Set the value of MaxPermSize to 384M or larger. For example, enter the following generic JVM arguments: XX:MaxPermSize=384m.
  5. Click OK, and save the changes.