Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cannot set soft nofile limit, open files (-n) 1024

Meow WoofMar 27 2019 — edited Mar 28 2019

I downloaded a VM with Linux 7 which should be appropriate for my needs. However the software I need to install requires fileno >= 8192.

Let's try to fix it. File /etc/security/limits.conf is empty. If we check ulimit, the limits are default under root or oracle

[oracle@docker Desktop]$ ulimit -a | grep open

open files                      (-n) 1024

[root@docker ~]# ulimit -a | grep open

open files                      (-n) 1024

now let's add the limits in /etc/security/limits.conf

root    soft    nofile  8192

root    hard    nofile  8192

oracle  soft    nofile  8192

oracle  hard    nofile  8192

and check the limit again

[root@docker ~]# ulimit -a | grep open

open files                      (-n) 8192 <<< === It works

[oracle@docker Desktop]$ ulimit -a | grep open

open files                      (-n) 1024 <<< === doesn't work

Why the limit doesn't work under user oracle?

Comments
Post Details
Added on Mar 27 2019
2 comments
1,540 views