[Freeipa-users] 389-ds memory usage
Rich Megginson
rmeggins at redhat.com
Mon Apr 23 13:15:59 UTC 2012
On 04/22/2012 01:50 PM, Sigbjorn Lie wrote:
> Hi,
>
> I have different ipa domains, installed on Red Hat 6.2 or CentOS 6.2
> servers, with all 389-ds updates applied. After some time all the
> memory in the server is consumed, mostly by the ns-slapd process.
>
> I've looked at the RH Directory Server tuning manual at
> docs.redhat.com and looked through the various tuning options. I found
> the "nsslapd-cachememsize" and "nsslapd-dbcachesize" options to be set
> to around 10MB by default. The id2entry.db4 file for the database in
> the test IPA domain comes in at 6.7MB.
>
> If I restart the directory server the memory is released. And then
> slowly consumed again over time.
>
> Running benchmarks with ldclt reveals much better numbers for the
> directory servers that's recently been rebootet and does not yet
> consume all the memory in the machine.
>
> Am I missing some configuration?
Try increasing your nsslapd-cachememsize and monitoring it closely.
Using the size of id2entry.db4 is a good place to start, but that will
not be enough.
http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Monitoring_Server_and_Database_Activity-Monitoring_Database_Activity.html
See also https://fedorahosted.org/389/ticket/51 and
https://bugzilla.redhat.com/show_bug.cgi?id=697701
> Is this normal behaviour for 389-ds to consume all physical memory AND
> all swap memory?
It is not normal behaviour.
> It certainly seem to have a performance impact for the ldap server.
Indeed.
>
>
>
> top - 21:31:51 up 52 days, 22:03, 2 users, load average: 0.33, 0.15,
> 0.07
> Tasks: 136 total, 1 running, 135 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.3%us, 0.7%sy, 0.0%ni, 92.7%id, 6.3%wa, 0.0%hi,
> 0.0%si, 0.0%st
> Mem: 2055084k total, 1981892k used, 73192k free, 996k buffers
> Swap: 1048568k total, 1048568k used, 0k free, 17172k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 1347 dirsrv 20 0 3301m 1.4g 2736 S 0.3 70.0 340:27.17 ns-slapd
>
>
>
> Regards,
> Siggi
>
> _______________________________________________
> Freeipa-users mailing list
> Freeipa-users at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-users
More information about the Freeipa-users
mailing list