How to increase limit for max number of open files (ulimit -n) on solaris 5 (SunOs5.10)
Hi, my process requires to open several files at a time(Any way I will close them once I am done with my job). But it is failing since the max limit is default to 256. I am planning to increase it to 2048.
I am providing the server details below -
Server - SunOS 5.10
User - steffen (I just need to increase the limit for user steffen)
My current limits -
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
I tried using below ways to overcome the issue -
- Manually tried setting the ulimit to 2048 (ulimit -n 2048)
- Tried adding it in the .profile
- Tried changing it using projecs(by Admin) as below -
1. projadd -K "process.max-file-descriptor=(basic,2048,deny)" proj.files
2. usermod -K "project=proj.files" steffen
After all this, I am still facing the issue.
I am attaching the same error log. Also, please let me know if I missed to add any other detail.
Please help me on how I can resolve this.
|