Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16916

camel split with parallel processing true consumes lots of heap space when using camel-ftp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.1
    • 3.7.6, 3.11.3, 3.13.0
    • camel-core
    • None
    • RHEL Linux 7

      Karaf 3.2.1

      OpenJDK 11

    • Unknown

    Description

      Camel split with parallel processing true consumes lots of heap space and eventually (after several huge runs) makes java run out of heap space. Reading 50 000 lines from source and creating 50 000 responses as xml files. Out of heap space happends after 3-4 runs (once a day). Workaround is to make parallelProcessing to false .

      My route:

      <from uri="sftp://server?fileName=list.txt"/>

      <split parallelProcessing="true">
       <tokenize token="\r\n|\n" xml="false" trim="true"/>
       <convertBodyTo type="java.lang.String" charset="UTF-8"/>
       <to uri="bean:collectDataByBody?method=collect"/>
       <to uri="direct:sendToSftp"/>
      </split>

      <from uri="direct:sendToSftp"/>
      <choice>
      <when>
      <simple>${body} != null</simple>
      <marshal>
      <jaxb contextPath="fi.package.entity"/>
      </marshal>
      <to uri="sftp://server/answers?disconnect=true"/>
      </when>
      <otherwise></otherwise>
      </choice>

       

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            tapiiron Tapio Piironen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: