I keep getting "Too many open files" in /var/adm/messages that I do not know how to fix.
I've searched for solution on this forum and have increased the file descriptors limit but the problem persists.
The problem is happening in a solaris zone....
/var/adm/messages log example
May 10 12:31:08 app.server.com procname[3962]: [ID 702911 local0.error] [1] Cannot open destination 'xyz.tmp' [Too many open files]
plimit 3962
3962: procname
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 3072 3072
vmemory(kbytes) unlimited unlimited
pfiles 3962
.....
265 entries
ulimit -n -H
3072
ulimit -n -S
3072
Running a shell script that goes through /proc and runs pfiles on all the processes on the zone...
Shows that it opened 2746 files... well below the limit.
Running the same script on the global zones....
shows 7522 files open (I'm guessing all zones + global)
global....
ulimit -n -H
65536
ulimit -n -S
256
---------- Post updated at 03:16 PM ---------- Previous update was at 03:14 PM ----------
Another thread mentioned that maybe it's a "too many concurrent open files"...
global...
# getconf OPEN_MAX
256
the problematic zone...
# getconf OPEN_MAX
3072
global
# echo "maxusers/D" | adb -k
physmem 1fe90d
maxusers:
maxusers: 2048
and I cant seems to run this on the zone...