gevent启动的flask服务报错Too many open files
Traceback (most recent call last):
File "/data/miniconda3/envs/ner_py37/lib/python3.7/site-packages/gevent/baseserver.py", line 227, in _do_read
File "/data/miniconda3/envs/ner_py37/lib/python3.7/site-packages/gevent/server.py", line 198, in do_read
OSError: [Errno 24] Too many open files
2022-07-13T12:23:52Z <WSGIServer at 0x7fc47ec6d790 fileno=4 address=0.0.0.0:8088> failed with OSError
此问题一般出现在频繁调用接口时,通过修改(改为一个更大的数)linux系统的文件读写次数限制可以解决此问题。