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

just booting jdbc driver and shutting down seem to leak memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.0
    • 10.2.1.6
    • Services
    • None
    • Low

    Description

      Reporting for Daniel John Debrunner.

      Doing simple boot and shutdown of the driver in a loop
      seem to grow the heap forever:
      new org.apache.derby.jdbc.EmbeddedDriver(); //boot the driver
      DriverManager.getConnection("jdbc:derby:;shutdown=true");
      //shutdown the cloudscape instance completely

      after booting and shutting down 1516 times, memory used is
      ~~41931056 bytes.
      Sample GC Output:
      1931.93: [Full GC 43484K->43243K(65088K), 0.1779751 secs]
      1933.13: [Full GC 43511K->43270K(65088K), 0.1914383 secs]
      1934.47: [Full GC 43538K->43297K(65088K), 0.1808878 secs]
      1935.68: [Full GC 43564K->43324K(65088K), 0.4461623 secs]
      1937.43: [Full GC 43591K->43350K(65088K), 0.1842980 secs]
      1938.63: [Full GC 43617K->43377K(65088K), 0.1873431 secs]
      1939.85: [Full GC 43644K->43404K(65088K), 0.1948505 secs]
      1941.07: [Full GC 43671K->43430K(65088K), 0.1790895 secs]

      Attachments

        1. DERBY-23.diff
          2 kB
          Knut Anders Hatlen
        2. DERBY-23.stat
          0.2 kB
          Knut Anders Hatlen
        3. DERBY-23-npe.diff
          3 kB
          Knut Anders Hatlen
        4. DERBY-23-npe.stat
          0.1 kB
          Knut Anders Hatlen
        5. DERBY-23-with_comments.diff
          2 kB
          Knut Anders Hatlen
        6. derbyall_report.txt
          205 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              tulika Tulika Agrawal
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: