I have a process which is running as
golden user and I am trying to increase the open file limit for that user so that all the process that gets started up by that user, it should uses that settings. I changed the limits into below file and changes are not taking into affect:
/etc/security/limits.conf: * soft nofile 65535 * hard nofile 100000
I modified settings for all the users by changing the limits for
* wildcard as shown above. Now I started my process as golden user and I executed below cat command and I see it is using
8092 as open files so I am not sure why my changes are not getting into affect.
golden@machineA:~$ cat /proc/1442/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size unlimited unlimited bytes Max resident set unlimited unlimited bytes Max processes 483036 483036 processes Max open files 8092 8092 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 483036 483036 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us
I am using Ubuntu 14.04 box. Any idea what is wrong here and how can I make sure all process that gets started with
golden user uses the new open file configuration? I think there is some place where 8092 is hardcoded because of which it is not overriding this value.
cat /proc/sys/fs/file-max 6145946