Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1142

Metadata calls leak memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.1.2.1, 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None

    Description

      When calling a DatabaseMetaData method that returns a ResultSet,
      memory is leaked. A loop like this (using the embedded driver)

      while (true)

      { ResultSet rs = dmd.getSchemas(); rs.close(); }

      will eventually cause an OutOfMemoryError.

      Attachments

        1. 1142_close_single_use_activations_draft.txt
          2 kB
          Daniel John Debrunner
        2. metadataloop.java
          0.6 kB
          Knut Anders Hatlen

        Activity

          People

            Unassigned Unassigned
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: