I added the following to consumer section of the wiki:

>>
If you are consuming a lot (100K+) of rows and experience OutOfMemory problems 
you should set the maximumResults to sensible value.
<<

Comments, etc welcome.

Cheers, Thomas.

-----Ursprüngliche Nachricht-----
Von: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Gesendet: Freitag, 01. April 2016 06:53
An: users@camel.apache.org
Betreff: Re: Camel JPA consumer causing Out of Memory when polling table

Hi

Good to hear, that is a low of records in that table.

You are welcome to add a section in the docs to emphasize this option to limit 
the returned data when there is a lot of rows http://camel.apache.org/jpa

How to edit  the docs
http://camel.apache.org/how-do-i-edit-the-website.html

On Thu, Mar 31, 2016 at 11:59 PM, raffi <raffi.onj...@gmail.com> wrote:
> Figured it out, forgot to set maximumResults on poller,
>
>  <from
> uri="jpa:com.rt.sfc.Account?maxMessagesPerPoll=15&amp;maximumResults=5
>
> Was pulling 100K+ rows, OOM every time :-)
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-JPA-consumer-causing-Out-of-Me
> mory-when-polling-table-tp5780168p5780197.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to