Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
talendtester
Creator III
Creator III

[resolved] OutOfMemoryError: Java heap space

I have a job that looks like:
tFileInputDelimited > tMap > tBufferOutput > tTeradataOutput
I am committing every 2,000 rows with a Use Batch Size of 500.
My file has 3.1 million rows and I get to about 3.06 million rows loaded before I get the error. What can I do differently to avoid this Java heap space error?
Exception in thread "Thread-0" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedList.listIterator(Unknown Source)
at java.util.AbstractList.listIterator(Unknown Source)
at java.util.AbstractSequentialList.iterator(Unknown Source)
at routines.system.RunStat.sendMessages(RunStat.java:248)
at routines.system.RunStat.run(RunStat.java:212)
at java.lang.Thread.run(Unknown Source)
Exception in thread "main" java.lang.Error: java.lang.OutOfMemoryError: Java heap space
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
1. Do you really need a tBufferOutput component to buffer the records? which will consume so much memory.
2. Go to the windows-->preference-->talend-->run.debug and allocate more memory by modifying the JVM parameters.
Best regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi
1. Do you really need a tBufferOutput component to buffer the records? which will consume so much memory.
2. Go to the windows-->preference-->talend-->run.debug and allocate more memory by modifying the JVM parameters.
Best regards
Shong
talendtester
Creator III
Creator III
Author

Removing tBufferOutput helped!