Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-957

OOM when adding a lot of entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Won't Fix
    • 1.5.0
    • 1.5.2
    • None
    • None

    Description

      I have tried to load a million entries in the server. After having injected 71 000 entries, I got an OOM exception on the server, with this message on the client :
      adding new entry "uid=user.71562,ou=Pldap_add: Internal (implementation specific) error (80)
      additional info: failed to add entry uid=user.71607,ou=People,dc=example,dc=com: Failed to commit changes to the record manager.

      My server have been launched with 512 Mb of memory, and the cache size were set to 10000 (cf server.xml attached)

      <property name="cacheSize" value="11000" />

      <property name="indexedAttributes">
      "1.3.6.1.4.1.18060.0.4.1.2.1 name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.2" name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.3" name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.4" name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.5" name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.6" name="cacheSize" value="11000"
      "1.3.6.1.4.1.18060.0.4.1.2.7" name="cacheSize" value="11000"
      "dc" name="cacheSize" value="11000"
      "ou" name="cacheSize" value="11000"
      "krb5PrincipalName" name="cacheSize" value="11000"
      "uid" name="cacheSize" value="11000"
      "objectClass" name="cacheSize" value="11000"

      The typical entry, generated by MakeLDIF, is like :

      dn: uid=user.2,ou=People,dc=example,dc=com
      objectClass: top
      objectClass: person
      objectClass: organizationalPerson
      objectClass: inetOrgPerson
      givenName: Aaren
      sn: Atp
      cn: Aaren Atp
      initials: AA
      uid: user.2
      mail: user.2@example.com
      userPassword: password
      telephoneNumber: 719-001-7757
      homePhone: 905-825-3548
      pager: 699-633-4412
      mobile: 093-803-7096
      employeeNumber: 2
      street: 43741 Adams Street
      l: Lafayette
      st: NC
      postalCode: 44014
      postalAddress: Aaren Atp$43741 Adams Street$Lafayette, NC 44014
      description: This is the description for Aaren Atp.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: