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

camel-core - XPathBuilder never clears pool when using @XPath annotation and grows pool causing memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.3, 3.12.0
    • 3.7.7, 3.11.4, 3.14.0
    • camel-core
    • None
    • Unknown

    Description

      When using @XPath() annotations to bean method parameters, XPathBuilder is used and expressions are added to a pool in the init() method of the class.

      These expressions are keep adding up but they are never cleared.

      There's a method doStop() which has the code for cleaning but it is never used, hence a leakage of XPathExpressions.

       

      Attachments

        1. FULINS_I_20211106_01of01.zip
          1 kB
          Mikael Andersson Wigander

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              hakuseki Mikael Andersson Wigander
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: