Derby
  1. Derby
  2. DERBY-4895

Thread local TableDescriptor#referencedColumnMap is not removed from app threads when Derby is shut down

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1
    • Fix Version/s: 10.5.3.2, 10.6.2.4, 10.7.1.1
    • Component/s: SQL
    • Labels:
      None
    • Bug behavior facts:
      Regression, Seen in production

      Description

      > This has been seen to cause error messages in TomCat, cf. this quote from a mail on derby-user:
      >
      > http://mail-archives.apache.org/mod_mbox/db-derby-user/201011.mbox/%3C7800E37B639BC345BC2AB40980B7C529180FB525@MERCMBX03R.na.SAS.com%3E
      >
      > SEVERE: The web application [/MyApp] created a ThreadLocal with key of type [org.apache.derby.iapi.sq\
      > l.dictionary.TableDescriptor$1] (value [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@d133a3])\
      > and a value of type [java.util.WeakHashMap] (value [{=

      {1, 2, 3, 4}

      , =null, =null}]) but failed to remo\
      > ve it when the web application was stopped. This is very likely to create a memory leak.

      1. derby-4895-a.diff
        7 kB
        Dag H. Wanvik
      2. derby-4895-a.stat
        0.2 kB
        Dag H. Wanvik
      3. derby-4895_10_6_diff.txt
        7 kB
        Kathey Marsden
      4. DERBY-4895_10_5_diff.txt
        7 kB
        Kathey Marsden

        Issue Links

          Activity

            People

            • Assignee:
              Dag H. Wanvik
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development