Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-1007

Memory Leak in SMSNotificationManager when ldap error occurs

    XMLWordPrintable

    Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Snapshot9.5.1, Snapshot9.5.2, 9.5.3, 9.5.4
    • 9.5.5, 10.0.1, 10.1.0-Xpress
    • sms
    • Rank:
      1|hzn8hb:
    • Sprint 3

      Description

      1. login to admin console
      2. click [Configuration] -> [Servers and Sites] -> click your server -> [SDK] tab
      3. under "Data Store" section, change the parameter as follows:
      Enable Datastore Notification: Yes
      Specifies if backend datastore notification is enabled. If this value is set to 'false', then in-memory notification is enabled. (property name: com.sun.identity.sm.enableDataStoreNotification)
      4. under "Event Service", removed sm and/or um from the list of disabled event service connection
      Disabled Event Service Connection: aci, um, sm
      Specifies which event connection (persistent search) to be disabled. There are three valid values - aci, sm and um (case insensitive). Multiple values should be separated with ",". (property name: com.sun.am.event.connection.disable.list)

      When you have LoadBalancer that times out before LDAP closes its idle connection, then openAM EventService will receive err=81 which will be printed in 'Configuration' debug log


      WARNING: EventService.run() LDAPException received:
      com.sun.identity.shared.ldap.LDAPException: Server or network error (81)


      This will trigger RetryTask which will eventually create new instances of ServiceSchemaManagerImpl since all cache were cleared, leading to gradual OOM.


      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:599)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:113)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:77)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.authentication.config.AMAuthLevelManager.updateGlobalAuthLevelMap(AMAuthLevelManager.java:697)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.authentication.config.AMAuthLevelManager.initialize(AMAuthLevelManager.java:199)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.authentication.config.AMAuthLevelManager.schemaChanged(AMAuthLevelManager.java:461)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.ServiceSchemaManagerImpl.allObjectsChanged(ServiceSchemaManagerImpl.java:381)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.SMSNotificationManager.allObjectsChanged(SMSNotificationManager.java:343)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.sm.ldap.LDAPEventManager.allEntriesChanged(LDAPEventManager.java:170)
      13:53:57,834 ERROR [STDERR] at com.iplanet.services.ldap.event.EventService$RetryTask.run(EventService.java:1229)
      13:53:57,834 ERROR [STDERR] at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:430)


        Attachments

          Issue Links

            Activity

              People

              sachiko Sachiko Wallace
              sachiko Sachiko Wallace
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: