too many open files

Category: Linux/Unix Community -> System Maintenance Author: sgsjhgsjhs Date: 2007-02-19 10:42:45
 
sgsjhgsjhs
2007-02-19 10:42:45
ulimit-a after the results:
core file size (blocks,-c) 0
data seg size (kbytes,-d) unlimited
scheduling priority (-e) 20
file size ; (blocks,-f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes,-m) unlimited
open files ; (-n) 65536
pipe size (512 bytes,-p) 8
POSIX message ; queues (bytes,-q) 819200
real-time priority (-r) 0
stack size ( kbytes,-s) 8192
cpu time (seconds, ;-t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes,-v) unlimited
file locks ; (-x) unlimited

sudo lsof | wc-l the result is:
5217

Why also appeared too many open files problem?
seeking answers, online ah. . . .
fengzhu865
2007-02-19 10:59:48
may be your application open the file does not close due to go to troubleshoot it.
zwbird121688
2007-02-19 11:13:46
view during operation under / proc / $ PID / fd / directory has many files.
If a lot, and that is not your program open after close.
winner629
2007-02-19 11:20:07
load overruns it
tonwe5156
2007-02-19 11:28:20
ultimate solution
grep "too many open files" your_src_root / *-R
a452520569
2007-02-19 11:36:21
there is no program opens the file after the release! Inquiries about the current process, and look at that process consumes more resources, the key depends on what your application server
wei5055
2007-02-19 11:40:29
weblogic do you use?
run lsof | wc-l when it is su - xxx past it?
did not have permission to run sudo lsof?
you look at / proc / <pid> / limits the value of which is the number