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

Re: Setting OPENLDAP_FD_SETSIZE on an existing directory



Thanks Dieter,

To change number of open files permanently on Centos you can edit the
nofile (number of files setting) setting in /etc/security/limits.conf

* -  nofile 8192

for example this sets the number of open files to 8192 for all
(domains), enforced for both hard and soft limits.

for more info:

man limits.conf

I logged out and back in to make the setting take on my machine.

Cheers,
George





On 10 December 2010 11:25, Dieter Kluenter <dieter@dkluenter.de> wrote:
>
> Am Thu, 9 Dec 2010 21:13:22 +0000
> schrieb George Siddiqui <george@blue-bolt.com>:
>
> > Hi,
> >
> > I recieved my first of these errrors from openldap server today.
> >
> > slapd[1648]: warning: cannot open /etc/hosts.deny: Too many open files
> >
> > The faqomatic suggest that I do the following:
> >
> > env CPPFLAGS="-DOPENLDAP_FD_
> > SETSIZE=8192" ./configure
> >
> > http://www.openldap.org/faq/data/cache/1126.html
> >
> > Is there anyway I can set this without having to build openldap again?
>
> ulimit -a shows the default values, ulimit -n <value> sets the number
> of open files.
>
> -Dieter
>
> --
> Dieter Klünter | Systemberatung
> http://dkluenter.de
> GPG Key ID:DA147B05
> 53°37'09,95"N
> 10°08'02,42"E



--
George Siddiqui
Systems
BlueBolt Ltd
15-16 Margaret Street
London W1W 8RW
Tel:  +44 207 637 5575
Mob: +44 7984 278 483