Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1479

CachedPreparedStatement must clear parameters of the wrapped statement on close

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.6.Final
    • 3.0.5.Final
    • None
    • None

      Method
      public void close()
      performs "Reset the defaults" if it decides to cache the prepared statement. Unfortunately it does not clear parameters of the underlying prepared statement. Depending on the statement the parameters can be quite large. If the statement is not used very often and remains in the cache, all those parameters contribute to the memory footprint of the running process and can even lead to an OOM.

              tadamski@redhat.com Tomasz Adamski
              tadamski@redhat.com Tomasz Adamski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: