How to change ulimit in CentOS6

6.7k views Asked by At

I am using CentOS6.6 and trying to install HDP2.2

When I do: ulimit -Sn Its value is 1024

When I do: ulimit -Hn Its value is 4096

The recommended maximum number of open file descriptors is 10000, or more.

I am trying to increase this value. I have checked several link and trying to follow steps but not getting any success. I am looking some help to increase this value.

1

There are 1 answers

4
gwgyk On BEST ANSWER

CentOS is different from RHEL5, you need to modify the file /etc/security/limits.conf, add the follow sentences to the end of file:

*           soft    nofile          655350
*           hard    nofile          655350

then, relogin the system(very important). Gook luck.