[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: proxycache memory allocation

"Dieter Kluenter" <dieter@dkluenter.de> writes:

> Hi,
> I'm testing 2.3.24 back-ldap with proxycache on Linux-2.6.11-x86_64
> installed in VMware-Server-1.0, with 512MB Ram, 1GB swap and 10GB disk
> space. The host is a x86_64, 2GB RAM, same kernel version.
> I just wonder how much memory pcache is allocating, as the kernel runs
> out of memory and kills slapd. While running slapd with back-ldap and
> rewrite engine only, all is fine. Any hints?

Just for the records. I have found the reason. Manual slapo-pcashe(5)

"config  directives that are specific to the proxycache overlay can
be prefixed by proxycache-, to avoid conflicts with directives specific
to  the  underlying database or to other stacked overlays."

Which I did in my slapd.conf. 

> | proxycache-directory     /var/lib/ldap/cache
> | proxycache bdb 5000 1 100 90
> | proxycachequeries 10000
> | proxyattrset 0 mail telephonenumber
> | proxytemplate (|(sn=)(cn=)) 0 3600 3600
> | response-callback tail
> | proxycache-index objectclass eq
> | proxycache-index queryid eq
> | proxycache-index sn,cn eq,sub

The statements 'proxycache-directory' and 'proxycache-index' were
unknown to slapd, but now error was submittted.
I just tested successfully with HEAD, which showed the errors.


Dieter Klünter | Systemberatung