Whenever I try to change to testuser, I get resource temporarily unavailable message. The nproc and nofile limits are set to 65k. testuser runs multiple java programs. Did not exceed the nproc and nofile values(verified using ps and lsof commands) for testuser.
Contents of /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
testuser soft nofile 65535
testuser hard nofile 65535
This is a CentOS 7 system running on a powerful Dell 64bit server.
What else could be the issue?