Out of memory error sometimes occurs in WebLogic
Problem or error: Under some circumstances, you may see the following error in your application server log when running IBM ® applications on WebLogic with the Sun JVM:
java.lang.OutOfMemoryError: PermGen space.
Solution: To work around this issue, modify the setDomainEnv script to increase the minimum memory (-Xms), maximum memory (-Xmx), and permanent generation (-XX:PermSize) values of the USER_MEM_ARGS parameter. The values you set depend on the number of applications running in your application server; more applications require higher values.