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

General support questions

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

Postby 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: Select all
[WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.


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: Select all
*                -        nofile         8192


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

Code: Select all
session     required      pam_limits.so


In /etc/sysctl.conf I have:

Code: Select all
net.ipv4.tcp_keepalive_time = 300
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 64000


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: Select all
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


Output of ulimit -Ha

Code: Select all
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


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.

Postby 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: Select all
ulimit -n 8192


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

Code: Select all
ulimit -n 8192


Nevertheless, imho inserting

Code: Select all
* - nofile 8192


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


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


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 10 guests