title: Large(r) files with camel-ws - Memory
body: <p>We use camel with a webservice-endpoint starting a route. This works well so far. Now I tested some 'larger' file of just 15MB and the route runs into a <code>OutOfMemoryError</code>. Heapsize is 1280MB (<code>-Xms128m -Xmx1280m</code>).</p>
  
  <p>Is there a limit for the memory, a route may use? I winder, that a 15MB file could not be received with the tomcat using 1280 MB of memory.</p>
  
  <p>Did I miss some configuration?</p>
  
  <hr>
  
  <p>Sry for answering late, I had same time off.</p>
  
  <p>The route looks like this, I think this doesn't really help ;-):</p>
  
  <pre><code>this.from(this.createWsEndpoint(...))
  .routeId("some id")
  .process(new AuthentificationProcessor(...))
  .process(this.getAddMetadataProcessor())
  .process(this.getArchiveToDbProcessor())
  .to(this.getProducerJpaEndpoint())
  </code></pre>
  
  <p>Anyway, ftp seems to be the future for this case.</p>