1

I have already looked into the earlier post on handling large csv file using camel. In the below code I have used bindy to handle my CSV file. Also used streaming and tokenizer to further split the file into group of 2000 records.

Still the server gives OOM error when I run this in Production env, work fine in the development machine when processing the same file.

What am I missing?

<split streaming="true">
    <tokenize token="\n" group="2000"></tokenize>
        <unmarshal ref="bindyDataformat">
            <bindy type="Csv" classType="com.camel.bindy.input.ABC"/>
        </unmarshal>
        <bean ref="csvBean" method="processAbcCsv"/>
        <marshal ref="bindyDataformat">
             <bindy type="Csv" classType="com.camel.bindy.input.ABC"/>
        </marshal>
        <to uri="{{to.file.processed}}"/>
</split>
gtonic
  • 2,295
  • 1
  • 24
  • 32
Yoogi
  • 123
  • 7

0 Answers0