You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2016/04/01 06:52:46 UTC
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 <ra...@gmail.com> wrote:
> Figured it out, forgot to set maximumResults on poller,
>
> <from
> uri="jpa:com.rt.sfc.Account?maxMessagesPerPoll=15&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-Memory-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
AW: Camel JPA consumer causing Out of Memory when polling table
Posted by "Walzer, Thomas" <th...@integratix.net>.
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.ibsen@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 <ra...@gmail.com> wrote:
> Figured it out, forgot to set maximumResults on poller,
>
> <from
> uri="jpa:com.rt.sfc.Account?maxMessagesPerPoll=15&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