我有一个长时间运行的python脚本,与新贵一起启动。这个脚本提出了很多要求。一切起初效果很好,几个小时后,但我开始永久收到以下错误为每个请求:永久gaierror运行几个小时后'名称解析中的临时失败'
File "/opt/a/a-env/local/lib/python2.7/site-packages/atom/client.py", line 119, in request
File "/opt/a/a-env/local/lib/python2.7/site-packages/atom/http_core.py", line 420, in request
File "/opt/a/a-env/local/lib/python2.7/site-packages/atom/http_core.py", line 489, in _http_request
File "/usr/lib/python2.7/httplib.py", line 931, in endheaders
File "/usr/lib/python2.7/httplib.py", line 794, in _send_output
File "/usr/lib/python2.7/httplib.py", line 756, in send
File "/usr/lib/python2.7/httplib.py", line 1134, in connect
File "/usr/lib/python2.7/socket.py", line 553, in create_connection
gaierror: [Errno -3] Temporary failure in name resolution
这不是名称解析或DNS问题,因为应用程序修补的一个简单的重启这个问题。
我已经尝试了Python 2.6 a 2.7和发生同样的情况。
我跑Linux 2.6.35-30-virtual #61-Ubuntu SMP Tue Oct 11 18:26:36 UTC 2011 x86_64 GNU/Linux
已经有解决这个问题的几个帖子,但没有一个简单的解释或解决方案:
- https://github.com/ggstuart/greenview/issues/4
- Permanent 'Temporary failure in name resolution' after running for a number of hours
已经得到它最近,只有394文件描述符横跨整个系统的开放('lsof的|厕所-l')。 – Endophage 2013-08-27 18:26:58