Runtime fails with "java.lang.OutOfMemoryError: PermGen space"

Talend Version          6.2.1


OutOfMemoryError in "PermGen space"
Additional Versions 5.6.x and above
Key words OutOfMemoryError "PermGen space"
Product Talend ESB
Article Type  
Problem Description

Talend ESB Runtime started throwing java.lang.OutOfMemoryError: PermGen space.


Increasing Max Heap Size (-Xmx) has no effect.

Problem root cause  
Solution or Workaround

There are several types of OutOfMemoryError. The PermGen space is related to max perm gen space size (-XX:MaxPermSize) which has been exceeded.


If you don't have this java option set, then the default one might be too low for your needs. You can set it to -XX:MaxPermSize=640M for example (assuming you are using Java 64 bit version).


If your Runtime starts as a service, then set this in the ***wrapper.conf file used by the service. Just add the following 2 lines:

In the lines above, you add numbers "10" and "11", but you need to adjust the correct numbering based on your own ***wrapper.conf script.


As for increasing the JVM heap size, this would be needed if you encounter the other type of OutOfMemoryError, which is Java heap space.

JIRA ticket number  
Version history
Revision #:
5 of 5
Last update:
‎09-29-2018 12:10 AM
Updated by:
Labels (4)