Here are the conf files and details, no matter what I did, soft openfiles wont go over 1024.
CENTOS 6.7 x86_64
cat /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
cat /etc/security/limits.d/90-nproc.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
root@server [~]# ulimit -n
65535
cat /etc/sysctl.conf
fs.file-max = 65535
cat /proc/1/limits
Max open files 1024 4096
it shows the correct limit when you run ulimit -n but when you check cat /proc/1/limits it shows 1024, all programs on the server stucked with 1024 openfiles limit, they are all running under the root user.