too many open files

Category: Linux/Unix Community -> System Maintenance Author: sgsjhgsjhs Date: 2007-02-19 10:42:45
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:

Why also appeared too many open files problem?
seeking answers, online ah. . . .
2007-02-19 10:59:48
may be your application open the file does not close due to go to troubleshoot it.
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.
2007-02-19 11:20:07
load overruns it
2007-02-19 11:28:20
ultimate solution
grep "too many open files" your_src_root / *-R
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
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