camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Out of Memory For huge Json Response
Date Mon, 21 Apr 2014 01:49:34 GMT
Can I have a look at your camel route?
camel-http is using the stream by default and it can spool big streams to files.
I guess there could be something wrong after you get the response from the RSET service, So
I need to know more detail about your camel route.

Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On April 18, 2014 at 11:02:51 PM, Karthik.Pothuru ( wrote:
> Dear Team,
> We are facing Out of memory issue when receiving a huge json response (around 1 GB )
> hitting a REST webservice with in Target Enterprise. We are currently using camel Http
> component .
> Due to huge file, the entire data gets loaded into HEAP and the process is failing due
> that.
> Our requirement is to read this response and store it into a file which will later be
> for further data processing.
> Due to this issue, we are unable to go the next step of parsing. The same code works
> when small volume of data is received through the API. (at present we remember processing
> a response size of 150 MB and it was successful).
> Kindly need your input how to read response with lesser memory foot print.
> Thanks
> Karthik Pothuru
> Mob: +91 91766 97533

View raw message