java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: Java heap space
Set the Values for:
Initial memory pool: 256 (MB)
Maximum memory pool: 1024 (MB)
Thread stack size: 256 (KB)
Add the Java Options:
-XX:PermSize=128m
-XX:MaxPermSize=128m
At the Windows Start button, enter "Regedit" in the "Run" box
Navigate to the Apache Tomcat Settings within:
My Computer / HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation / Procrun 2.0 / Tomcat6 / Parameters / Java
Add the following Parameters:
Set the Values for:
Type: "REG_DWORD" Name: "JvmMs" (Initial memory pool): 256 Decimal (MB)
Type: "REG_DWORD" Name: "JvmMx" (Maximum memory pool): 1024 Decimal (MB)
Type: "REG_DWORD" Name: "JvmSs" (Thread stack size): 256 Decimal (KB)
Add the following Options:
-XX:PermSize=128m
-XX:MaxPermSize=128m
JAVA_OPTS="$JAVA_OPTS -Xms128M -Xmx1024M -XX:PermSize=128m -XX:MaxPermSize=128m"
Save the changes to the file and restart the tomcat process