0

我使用的是在OSX,python2.7和GAE 1.8.8的虛擬機上運行的ubuntu 13.10。谷歌AppEngine Python OSError「太多的文件打開」在啓動

空空dev_appserver.py導致以下錯誤:

INFO  2013-12-10 03:53:30,046 api_server.py:527] Saving search indexes 
Traceback (most recent call last): 
    File "/home/ubuntu/xxxxxx/google_appengine/dev_appserver.py", line 197, in <module> 
    File "/home/ubuntu/xxxxxx/google_appengine/dev_appserver.py", line 193, in _run_file 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 872, in <module> 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 868, in main 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 707, in stop 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 141, in quit 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 528, in cleanup_stubs 
    File "/home/ubuntu/xxxxxx/google_appengine/google/appengine/api/search/simple_search_stub.py", line 984, in Write 
    File "/usr/lib/python2.7/tempfile.py", line 304, in mkstemp 
    File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner 
OSError: [Errno 24] Too many open files: '/tmp/appengine.xxxxxx-hr-dev.ubuntu/tmpMVVXrH' 

任何想法?

回答

0

檢查你的linux系統上的共享內存參數kern.sysv.shmseg,並通過增加它來設置它。

要查看共享存儲器參數,使用:

sysctl -A | grep shm 

要更新參數,編輯文件:

sudo nano /etc/sysctl.conf 

請參閱本SO answer獲得更多信息。

+0

謝謝!問題解決了! – Mohamed