[ 
https://issues.apache.org/activemq/browse/CAMEL-2899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60406#action_60406
 ] 

Gert Vanthienen commented on CAMEL-2899:
----------------------------------------

I think you can already configure that with the *{{maxMessagesPerPoll}}* URI 
parameter to limit the number of files being processing in a single poll (cfr. 
http://camel.apache.org/file2.html) - could you give that a try to see if it 
solves your problem?

> out of heap space if remote FTP site has too many files to pick up
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2899
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2899
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Karl Palsson
>
> 2010-07-02 11:38:07,439 FATAL 
> [org.apache.camel.component.file.remote.FtpConsumer:CamelThread 10]   - 
> <Consumer Consumer[my_ftp_URI_here caused by: Java heap space>
> java.lang.OutOfMemoryError: Java heap space
> My remote FTP server has ~60k 100 byte files, and the camel endpoint consumer 
> falls over and doesn't start again.  I can use JMX to stop/start the 
> consumer, (it still has status "started") and it will log in to the remote 
> server again, but then fall over with the out of heap space.
> I can work around this by increasing the heap, or by moving some of the files 
> aside,  but I don't think camel should care how many files there are, or at 
> least, I think it should deal with it more gracefully.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to