Hi Can you try with Camel 2.13.0 release
On Sat, Apr 5, 2014 at 5:41 PM, bbk <brendi...@hotmail.com> wrote: > Hi, > > Since I upgraded Camel 2.6.0 to 2.10.2, the move large files fail using FILE > producer past a certain size (over 200mo). The Camel error is during convert > the body GenericFile to String. > > Failed delivery > org.apache.camel.TypeConversionException: Error during type conversion from > type: org.apache.camel.component.file.GenericFile to the required type: > java.lang.String with value GenericFile due java.lang.OutOfMemoryError: Java > heap space > > Since Camel 2.9.3, the method genericFileToString in class > GenericFileConverter modified with adding lines: > > // use reader first as it supports the file charset > BufferedReader reader = genericFileToReader(file, exchange); > if (reader != null) { > return IOConverter.toString(reader); > } > > So, I noticed that my error is due to "IOConverter.toString" causing Java > heap space. > > My question is: why my file producer fail in 2.10.2 and not in 2.6.0 and how > I can resolve it? > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-files-tp5749845.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io