Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-1550

Subresults from Import from resource are stuck in memory causing performance problems and even OutOfMemoryError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2 (Crius)
    • Fix Version/s: 2.2 (Crius)
    • Component/s: None
    • Labels:
      None
    • Environment:

      MySQL repository, LDAP server OpenDJ

    • Git Revision:
      9c16510a896f5d0da757752b6bb304739cb37ec5

      Description

      Import from resource LDAP (probably on other resources as well) causes rapid growth of system memory usage. This seems to be caused by subresults of importing individual users. These subresults are not stored in repository.

      After importing about 40k users from LDAP, system memory usage is at 2GB (which is maximum for JVM) and there is about 600MB of stored subresults.

      The situation is much worse, when import produces some error. After importing about 1500 users from LDAP with wrong schema, memory usage is again at 2GB, GC is constantly taking most of the JVM execution time and there is about 1GB subresults in memory.

      All problems are gone when we suspend or delete current import task.

        Attachments

          Activity

            People

            Assignee:
            erik Erik Suta
            Reporter:
            erik Erik Suta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: