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

Re: Problem with file descriptors limit



Hello Cleber,

the number of open files is fine. The ulimit -a returns:

---------------------------------------------
serv:/etc/sysconfig # ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 32
max memory size       (kbytes, -m) unlimited
open files                    (-n) 8192
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) unlimited
cpu time             (seconds, -t) unlimited
max user processes            (-u) 45056
virtual memory        (kbytes, -v) unlimited
--------------------------------------------

When the problem started to happen, the first thing I did was to increase
this number at /etc/security/limits.conf with this line:

*                hard    nofile          8192

It seems that the problem is about slapd limits.

Thank you!


Cleber P. de Souza escreveu:
> HI Guilherme,
>
> It's a limit that could be changed using the ulimit command.
> ulimit -a show all the default settings. Increase the open files
> number using -n.
>
>
> On 6/21/06, Guilherme Mundim Torres <gtorres@icmc.usp.br> wrote:
>> Hello,
>>
>> I have a SuSE 9.3 server with openldap2-2.2.23-6 and I'm getting errors
>> like:
>>
>> slapd[21431]: warning: cannot open /etc/hosts.deny:
>> Too many open files
>>
>> When it happens, the server crashes.
>>
>> The hardware is powerfull, a Dual Xeon With 5 GB RAM and SCSI hd's.
>>
>> I tryed to recompile the openldap. I downloaded the
>> openldap2-2.2.23-6.src.rpm from suse and modified the SPEC file
>> includind
>> this line:
>>
>> env CPPFLAGS="-DOPENLDAP_FD_SETSIZE=8192" ./configure
>>
>> So, I rebuild de package, uninstalled the old and reinstalled the new
>> rpm,
>> but the problem still remains.
>>
>> What can I do to solve this problem?
>>
>> Best Regards
>>
>
>
> --
> Cleber P. de Souza
>