Threads keeps on increasing with Polling Consumer using consumerTemplate.

Solution Unverified - Updated -

Issue

  • We are using a polling consumer to get files from an FTP server as described in the documentation [1]. Our use case involves a triggered route, which looks up file names from a DB, then attempts to read them from the FTP server. As we have specific files to read we use a syntax similar to the following:
ftp://host:port/path?fileName=file.name
  • This reads the file successfully, however it leaves a thread running after its read the file. As we are reading thousands of files this eventually crashes the container. I have tried stopping the endpoint, removing the endpoint, but the only thing that seems to kill the thread is stop the consumer template. However the template is injected [2] so there is only one of them, which means it stops anything else working.
  • Note that this happens in Fuse 6.3.0 too.
  1. http://camel.apache.org/polling-consumer.html
  2. http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html

Environment

  • Red Hat JBoss Fuse
    • 6.1.0
    • 6.2.1
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.