Tomcat chạy trên máy trạm của tôi trong vài ngày, bây giờ nó không có phản hồi, kết quả đầu ra lệnh lsof rất nhiều kết nối trạng thái close_wait, tomcat pid là 25422, tuy nhiên ulimit lệnh cho thấy rằng "tập tin mở" là 1024, làm thế nào điều này có thể xảy ra?Tại sao lsof báo cáo số tệp mở cao hơn đầu ra "mở tệp" của ulimit
[[email protected] home]# lsof -p 25422 | wc -l
10309
[[email protected] home]# 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) 399360
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
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) 399360
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Tôi có một số vấn đề, bạn có tìm lý do có thể? – snow8261
Xem http://serverfault.com/q/396872 và http://superuser.com/q/579692 để biết một số câu trả lời – JoseK