ulimit issue with open files descriptor

We have lots of error with "Too many open files" issue. So when I increase the limit to 36656 as suggested by this forum, and when i log out from the platform, it always went back to origin value, what has went wrong ? please any suggestion ?

root@hsbc_milan> ulimit -a
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 4096 <<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

root@hsbc_milan> ulimit -n 65535
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 65535<<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

when i log out and log in again, the value back to the origin value again!

core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 4096 <<<<<<<<<<<<<< 
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 32768
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

the /etc/system setting has the following value,

* Added by update-etc-system.fin.
set rlim_fd_max=65535
set rlim_fd_cur=65535

Any helps please ?

---------- Post updated at 11:18 AM ---------- Previous update was at 09:21 AM ----------

nobody ? :frowning:

Check /etc/profile and and "standard" user's .profile files (e.g., .bashrc for bash users) for ulimit.

Otherwise create a

ulimit -n 65335 

setting in the appropriate file, probably /etc/profile or your home directory .profile.

The ulimit command does not persist across logins.

1 Like