Hi Yeah unfortunately camel-http forces stream caching and will spool to disk > 64KB payloads
So you need to disable that by setting the threshold to 0 http://camel.apache.org/stream-caching.html On Thu, May 5, 2011 at 5:06 PM, Arturas Girenko <[email protected]> wrote: > Hi, > Please help with understanding of why the call I have is so slow: > > String responseBodyString = response.getOut().getBody(String.class); > > (I'm reading 5MB message from camel-http endpoint) - it takes ~7sec to > process. > > While the same message takes up to 1 second to show up with SoapUI. > > The variable Exchange response I get from calling ProducerTemplate method > request(String uri, Processor processor) where uri is "http://......." ant > this method takes ~200ms > > Is there a way of quicker get message body as string from camel-http > endpoint? > > Thank you. > Best Regards, > Arturas Girenko > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Prformance-problem-with-method-message-getBody-String-class-tp4373026p4373026.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
