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

Dmitri Medvedev commented on CAMEL-7632:
----------------------------------------

We could add the following to documentation to describe streaming mode:

On the page http://camel.apache.org/splunk
under URI options table, add new row at the end of the table
with the following contents:
Name      Default Value   Context    Description
streaming false           Consumer   Stream exchanges as they are received from 
splunk,
                                     rather than returning all of them in one 
batch.
                                     This has the benefit of receiving results 
faster,
                                     as well as requiring less memory as 
exchanges aren't buffered
                                     in the component.


> Add streaming mode to camel-splunk consumer
> -------------------------------------------
>
>                 Key: CAMEL-7632
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7632
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Dmitri Medvedev
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.14.0
>
>
> camel-splunk consumer runs out of memory when splunk resultset is large.
> This is because it accumulates all results in an array list before returning
> them.
> One possible way to address this is to add streaming support to the component.
> Here is the patch for streaming mode:
> https://github.com/dmitrimedvedev/camel/commit/7e4b5e9b206c7a969e6012d9afa40ac7024ee515
> https://github.com/dmitrimedvedev/camel/commit/f7063f760f5abf867fa2a6bbbd187220c941fa00



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to