Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Soumya_M
Contributor
Contributor

[resolved] java.lang.OutOfMemoryError: Java heap space

Hi all,

My talend job looks like - tPostgresqlInput - tMap - tPostgresqlOutput

the input table has 6mn+ records, I need to extract 2 columns from input table and send it to the output table

when i run the job, I'm getting error like -

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-0"

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Even though I've set JVM settings for -Xms and Xmx as 4096m and 8192m respectively

Can anyone please help me in rectifying this error

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Please have a look at this KB article about:

https://community.talend.com/s/article/OutOfMemory-Exception-WmtmQ

Hope it will be helpful for your use case.

Best regards

Sabrina

View solution in original post

5 Replies
Anonymous
Not applicable

Hello,

Please have a look at this KB article about:

https://community.talend.com/s/article/OutOfMemory-Exception-WmtmQ

Hope it will be helpful for your use case.

Best regards

Sabrina

Amanda2569
Contributor
Contributor

The solution worked for me thanks to the community and the members for the solution.

 

Anonymous
Not applicable

Hello,

Great it helps.

Feel free to let us know if there is any further help we can give.

Best regards

Sabrina

Soumya_M
Contributor
Contributor
Author

Thank you!!

that was helpful 🙂

Anonymous
Not applicable

Hello,

 

I've seen this error many times when using existing connection with Auto commit enabled.

Try the following:

  • Make sure fetch size is enabled under the advanced settings.
  • Use built in connection or existing connection without auto commit.