Derby
  1. Derby
  2. DERBY-5316

Unload old JDBC drivers when done with them in the upgrade tests

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      Discussed in this thread on derby-dev: http://mail-archives.apache.org/mod_mbox/db-derby-dev/201107.mbox/%3C4E146309.3000906@gmail.com%3E

      After we're done testing an old version in the upgrade tests, its classes are still loaded in the JVM because the old driver is referenced in DriverManager. We should find a way to unload the old drivers so that the memory usage of the upgrade tests is reduced. Now we typically need to run with -XX:MaxPermSize=200M or similar options to work around this issue.

      1. deregister-v2.diff
        8 kB
        Knut Anders Hatlen
      2. deregister-check.diff
        5 kB
        Knut Anders Hatlen
      3. deregister.diff
        11 kB
        Knut Anders Hatlen
      4. clear-threadlocal.diff
        3 kB
        Knut Anders Hatlen
      5. clear-contextservice.diff
        4 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-5267 [ DERBY-5267 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-2905 [ DERBY-2905 ]
          Knut Anders Hatlen made changes -
          Attachment deregister.diff [ 12485735 ]
          Knut Anders Hatlen made changes -
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Kathey Marsden made changes -
          Link This issue is related to DERBY-5322 [ DERBY-5322 ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-4895 [ DERBY-4895 ]
          Knut Anders Hatlen made changes -
          Attachment deregister-v2.diff [ 12486042 ]
          Knut Anders Hatlen made changes -
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Attachment clear-threadlocal.diff [ 12486065 ]
          Knut Anders Hatlen made changes -
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Attachment deregister-check.diff [ 12486167 ]
          Knut Anders Hatlen made changes -
          Attachment clear-contextservice.diff [ 12486295 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Knut Anders Hatlen made changes -
          Link This issue breaks DERBY-5343 [ DERBY-5343 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-4740 [ DERBY-4740 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12619337 ] Default workflow, editable Closed status [ 12797042 ]

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development