Thanks much Fernando for your support. We were able to resolve this with streamcaching and readLock check.
Regards, Venkat Venkatesh Krishnamoorthy | Service Reinvention – Integration Development Lead | • Target - [Description: Description: Description: cid:image001.png@01CE948A.B9662580] TCS Work: 612.304.7278 | Mobile: 612.205.4931 From: Fernando Ribeiro [mailto:fernando.ribe...@upic.com.br] Sent: Friday, April 18, 2014 10:19 AM To: users@camel.apache.org Cc: Rajbarath.Govindan; Venkatesh.Krishnamoorthy Subject: Re: Out of Memory For huge Json Response Why is the payload so big? On Fri, Apr 18, 2014 at 9:32 AM, Karthik.Pothuru <karthik.poth...@target.com<mailto:karthik.poth...@target.com>> wrote: Dear Team, We are facing Out of memory issue when receiving a huge json response (around 1 GB ) when 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 to that. Our requirement is to read this response and store it into a file which will later be parsed for further data processing. Due to this issue, we are unable to go the next step of parsing. The same code works fine 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<tel:%2B91%2091766%2097533> -- Fernando Ribeiro