Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2910

Properties login module seems to leak a PropertiesInstaller reference results in OOM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 2.4.0, 3.0.2, 2.3.6, 4.0.0.M3
    • karaf
    • None
    • jaas login

    Description

      with the default jaas login config - repeated login attempts lead to OOM.

      heap dump shows:
      org.apache.karaf.jaas.modules.properties.PropertiesInstaller 86,374 instances

      on investigation seems each PropertiesLogin init registers a PropertiesInstaller service that I don't see used.
      Unit test and possible fix (though I have no idea what a PropertiesInstaller service should do) attached.

      Attachments

        1. KARAF-2910-test+patch.txt
          4 kB
          Gary Tully

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: