OSError: [Errno 24] Too many open files with Google App Engine Task Queues in Dev Environment -
i'm testing google app engine application i've started using task queues process batch job. have local job seem number of tasks in task queue seems create number of objects in file system. clear: i'm not creating files, app server seems doing so.
i've noticed when creating large numbers of tasks (2000+) in development environment @ point jobs start failing following error:
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> --> </font> </font> </font> </script> </object> </blockquote> </pre> </table> </table> </table> </table> </table> </font> </font> </font><pre>traceback (most recent call last): file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3211, in _handlerequest self._dispatch(dispatcher, self.rfile, outfile, env_dict) file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3135, in _dispatch 'request.') file "/system/library/frameworks/python.framework/versions/2.5/lib/python2.5/tempfile.py", line 302, in mkstemp file "/system/library/frameworks/python.framework/versions/2.5/lib/python2.5/tempfile.py", line 236, in _mkstemp_inner oserror: [errno 24] many open files: '/var/folders/rm/rm1n57bdhncyqut2mqrtx++++ti/-tmp-/request.qky1gf.tmp' </pre>
i'm on os x 10.6.5 , i'm guessing it's os - though can't quite wrap head around why dev_appserver.py open many file descriptors. if it's creating 1 per task won't rate limiting prevent problem occurring?
i assume problem i'll see in dev, wanted ask if else has seen it.
david correct. can't create files in local file system.
but error getting caused a bug involving tasks in dev_appserver. once error, try running lsof
, you'll see dev server has bunch of handles datastore file.
switch using sqlite backend problem go away. not forget, when switch need clear datastore first time.
dev_appserver.py --use_sqlite --clear_datastore .
Comments
Post a Comment