Help! The maximum number of open file descriptors will not change.

General support questions
Post Reply
mysteron
Posts: 28
Joined: 2007/02/27 08:38:40

Help! The maximum number of open file descriptors will not c

Post by mysteron » 2012/08/27 11:23:44

Hi.

Have three systems, fresh installs with version of CentOS6.3 x86_64.

I'm trying to install 389 Directory Server, but the systemcheck reports a Warning.

[code][WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.[/code]

So, I do that which I've done for all other systems I've installed 389 on:

Set nofile to 8192:

This is in /etc/security/limits.conf

[code]* - nofile 8192[/code]

I've got in /etc/pam.d/system-auth

[code]session required pam_limits.so[/code]

In /etc/sysctl.conf I have:

[code]net.ipv4.tcp_keepalive_time = 300
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 64000[/code]

I've rebooted countless times, but I cannot get the nofile to change to 8192, it is stuck at 1024.

Output of ulimit -a

[code]core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 22953
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 22953
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited[/code]

Output of ulimit -Ha

[code]core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 22953
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 22953
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited[/code]

Help, what should I do. This is driving me nuts.


Thx,
/mysteron

mysteron
Posts: 28
Joined: 2007/02/27 08:38:40

Re: Help! The maximum number of open file descriptors will not change.

Post by mysteron » 2012/08/27 12:43:31

To work around this issue (which haven't been one on any other pre-Centos6.3 release) I did the following:

I inserted into .bashrc

[code]ulimit -n 8192[/code]

And in /etc/sysconfig/dirsrv I un-remarked

[code]ulimit -n 8192[/code]

Nevertheless, imho inserting

[code]* - nofile 8192[/code]

into /etc/security/limits.conf should make 8192 global, but it doesn't.


/mysteron

Post Reply