TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.8k stars 2.08k forks source link

php-fpm使用长链接连tarsPHP的tcp服务,什么原因会导致文件句柄太多, Error: Too many open files ?ulimit -n设置多少合适? #693

Closed yhb0202 closed 3 years ago

yhb0202 commented 4 years ago

What language are you using?

php

What operating system (Linux, Ubuntu, …) and version?

centos

What runtime / compiler are you using (e.g. jdk version or version of gcc)

gcc (GCC) 9.2.0

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

使用php-fpm连tarsphp的tcp服务,当客户端开启了长链接即$client = new \swoole_client(SWOOLE_SOCK_TCP | SWOOLE_KEEP); 服务端过一会儿就会提示swServer_master_onAccept(:115): accept() failed, Error: Too many open files[24] 是什么原因导致文件句柄增多的,ulimit -n 设置的已经够大了,这个值设置多少合适?

dpp2009 commented 4 years ago

客户端php-fpm,使用swoole_client???

tarscloudbot commented 3 years ago

该issue长期未更新。如果问题依旧没解决,欢迎重新打开issue。TARS社区有您更精彩。

Thanks for your supporting. The issue has not been updated for a long time. If the problem is still not resolved, welcome to reopen the issue.