XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.5
    • Core
    • None
    • ALL

    Description

      Hi Clinton and team.

      I found an interesting issue.
      In case of hot deploy
      ThreadLocal localSqlMapSession causes a memory leak.

      As you know, iBatis calls getLocalSqlMapSession().close();
      but WAS classLoader remains in the memory after a hot deployment
      because classLoader still has a reference of the ThreadLocal.

      It needs to explictly set null
      I tried to test with the code below and it works fine.

      getLocalSqlMapSession().set(null);

      I hope to improve iBatis
      Otherwise iBatis works greate !
      Cheers !

      Attachments

        1. SqlMapClientCleaner.zip
          2 kB
          Davide Romanini

        Issue Links

          Activity

            People

              jgbutler Jeff G. Butler
              kevin.chae kevin chae
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: