- 论坛徽章:
- 0
|
本帖最后由 513964839 于 2014-09-09 23:03 编辑
问题:
lsof -u user_name | wc -l 输出的文件数 远大于 ulimit限制的 open files
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 268288
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 2500
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 268288
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
# ulimit -n
2500
# cat /etc/security/limits.conf | tail -10
* soft nofile 2500
* hard nofile 2500
# lsof -u mysql | wc -l
3578
3578 > 2500
谢谢
|
|