Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10146

Groovy language in route and no camel-groovy leads to memory leaks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.15.5, 2.17.2
    • None
    • camel-core, camel-script
    • None
    • Unknown
    • Important

    Description

      Consider this simple route:

      <route id="leak">
      <from uri="file:///c:/temp/leak/in?move=.done&moveFailed=.error"/>
      <setHeader headerName="dummy"><groovy>"dummy" + System.currentTimeMillis()</groovy></setHeader>
      <to uri="file:///c:/temp/leak/out"/>
      </route>

      each time I put a file in c:/temp/leak/in, the number of instances of org.codehaus.groovy.control.CompilerConfiguration increases by one.
      Since each CompilerConfiguration, because of this other issue GROOVY-7884, is created anew and contains a BufferedWriter which in turn contains two buffers of 8192 elements (one char[8192] and one byte[8192]), the heap is soon consumed by useless buffers...
      Including camel-groovy in the dependencies the problem disappears.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            rste79 Stefano Rocca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: