How can I avoid the "java.lang.OutOfMemoryError: PermGen space" error?

Question ID : 224
Created on 2013-11-27 at 10:43 AM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=224



This error means that the non-heap memory limit of the JVM has been reached. The non-heap memory is used to store class descriptions, so this error may appear when running huge applications.

To avoid it, you must increase the non-heap memory limit by adding -XX:MaxPermSize=256m Java option to the command line:

iscrun -J-XX:MaxPermSize=256m PROGNAME
or
java -XX:MaxPermSize=256m PROGNAME

256 means 256 MB and it specifies the maximum amount of non-heap memory that the JVM can allocate. If itís not enough, try with higher values.


Back to Original Question