One Star

[resolved] tSortRow and Large Files

I am just starting with TOS 5.6.0 and I am trying to sort a large CSV file (2.5GB, 11M rows, 45 columns).  I am setting JVM to 2GB and I've tried various sizes of buffer for the external sort in Advanced tab.  The error stack shows that the out-of-memory occurs in various places, but the results is always similar to:
Exception in thread "Thread-0" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedList.listIterator(
at java.util.AbstractList.listIterator(
at java.util.AbstractSequentialList.iterator(
at routines.system.RunStat.sendMessages(
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.StringBuilder.toString(
at com.talend.csv.CSVReader.endColumn(
at com.talend.csv.CSVReader.readNext(
at johnmdm.sqlinout_0_1.SQLInOut.tFileInputDelimited_1Process(
at johnmdm.sqlinout_0_1.SQLInOut.runJobInTOS(
at johnmdm.sqlinout_0_1.SQLInOut.main(
Community Manager

Re: [resolved] tSortRow and Large Files

Take a look at this KB article, to resolve this error, try to store the data on disk instead of memory, check the 'sort on disk' box on the advanced setting tab of tSortRow component.
Best regards
Talend | Data Agility for Modern Business
One Star

Re: [resolved] tSortRow and Large Files

Hi, I am trying to solve an performance issue around sorting huge file(50 Million record) to be sorted on Integer column+Alpha column(file has 6 columns). tSort takes around 30 mins with enabling sort on disk .
I am using TOS 5.6.2 and evaluating this sort for my POC . Please advise and the optimized job design .