This bug is created as a clone of upstream ticket:
Dear SSSD team,
we are experiencing an issue with SSSD, where `sssd_be` is consuming a lot of memory. The RAM consumption grows continuously in a certain setup where a SFTP/SSH login happens every 30 seconds.
During a time period of 17 hours the memory usage of SSSD increased by 20% respectively 200MB (1024MB system memory).
After restarting SSSD the memory consumption goes back to normal.
\\The attached `debug log file` shows the login sequence of the mentioned SFTP user.
Since we don't have a large LDAP directory (~60 Unix users / ~20 Unix groups) I suppose we might have a misconfiguration in our `sssd.conf` (see attachments).
When I remove the `cache` file of SSSD and run an `id` on 50 LDAP users the memory consumption grows only about ~5MB. The memory usage stays the same even when I run the `id` command over and over again (executed at least 20 times).
The commands `getent passwd` and `getent group` also do not increase the memory usage of SSSD.
Information about the environment/system:
* LDAP is ID and AUTH provider
* LDAP schema is rfc2307bis
* RHEL 6.2 / CentOS 6.2
* sssd.conf (sanitized)
* sssd_EXAMPLE.log (sanitized)
* sssd_mem_usage.png (graph)
If you need any further debug information please let me know.\\Many thanks for looking into this issue.