While performing rules upgrade, encountered "OutOfMemoryError: PermGen space" error.

We are upgrading an application from PRPC62SP2 to Pega7.1ML8, While performing rules upgrade, encountered "OutOfMemoryError: PermGen space" error.

Below is the stack trace:

Exception in thread "Low Memory Detector" java.lang.OutOfMemoryError: PermGen space

[java] at sun.management.MappedMXBeanType.newBasicType(MappedMXBeanType.java:90)

[java] at sun.management.MappedMXBeanType.<clinit>(MappedMXBeanType.java:786)

[java] at sun.management.MemoryNotifInfoCompositeData.<clinit>(MemoryNotifInfoCompositeData.java:61)

[java] at sun.management.MemoryImpl.createNotification(MemoryImpl.java:168)

[java] at sun.management.MemoryPoolImpl$CollectionSensor.triggerAction(MemoryPoolImpl.java:300)

[java] at sun.management.Sensor.trigger(Sensor.java:120)

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

July 2, 2015 - 2:42am

Try increasing your heap size

July 2, 2015 - 2:43am

This issue is resolved by changing JVM setting to -Xms2048m -Xmx6144m -XX:PermSize=2048m -XX:MaxPermSize=4096m -Djava.awt.headless=true

September 2, 2015 - 8:41am

where you have set this JVM settings?




September 6, 2015 - 7:12am

Assuming this issue is with the Tomcat; typically the JVM settings are found in

Tomcat Dir > Bin > setenv.bat

September 6, 2015 - 10:27pm

Add JVM parameters as below in setupDatabase.xml.

<condition property="jvm.args" value="${jvm.arg.mem.max}" else="-Xms2048m -Xmx6144m -XX:PermSize=2048m -XX:MaxPermSize=4096m -Djava.awt.headless=true">

                <!-- Support old scripts which may still use this property -->

                <isset property="jvm.arg.mem.max"/>