mckoss / pageforest

Automatically exported from code.google.com/p/pageforest
0 stars 0 forks source link

Large document LIST uses 32s of CPU and exceeds deadline #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
mandelbrot.pageforest.com/v6?method=list

Hangs - then returns 500 error.  It looks like Caceable is calling PUT in the 
middle of this request?

12-11 04:47PM 39.844 /docs/v6?method=list 500 29318ms 56920cpu_ms 
32653api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) 
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.16 
Safari/534.13,gzip(gfe),gzip(gfe),gzip(gfe)
24.16.73.224 - - [11/Dec/2010:16:48:09 -0800] "GET /docs/v6?method=list 
HTTP/1.1" 500 0 - "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) 
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.16 
Safari/534.13,gzip(gfe),gzip(gfe),gzip(gfe)" "mandelbrot.pageforest.com" 
ms=29318 cpu_ms=56920 api_cpu_ms=32653 cpm_usd=1.598609 exit_code=104
E 12-11 04:48PM 08.687
Exception in request:
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/third_party/django-1.1/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/utils/decorators.py", line 69, in wrapper
    return func(request, *args, **kwargs)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/docs/views.py", line 112, in dispatch
    response = view_function(request, doc_id)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/docs/views.py", line 185, in doc_list
    return blob_list(request)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/utils/decorators.py", line 53, in wrapper
    response = func(*args, **kwargs)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/blobs/views.py", line 201, in blob_list
    raw_results = query.fetch(limit)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1840, in fetch
    return [self._model_class.from_entity(e) for e in raw]
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1247, in from_entity
    instance = cls(None, _from_entity=True, **entity_values)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/blobs/models.py", line 55, in __init__
    self.__setattr__('value', value)
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/blobs/models.py", line 91, in __setattr__
    Chunk(key_name=self.sha1, value=value).put()
  File "/base/data/home/apps/pageforest/2010-12-11.346843441274011131/utils/mixins/cacheable.py", line 138, in put
    return super(Cacheable, self).put()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 895, in put
    return datastore.Put(self._entity, config=config)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 404, in Put
    return _GetConnection().async_put(config, entities, extra_hook).get_result()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 548, in get_result
    self.check_success()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 517, in check_success
    self.wait()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 507, in wait
    apiproxy_stub_map.UserRPC.wait_all(self.__rpcs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 616, in wait_all
    finished = cls.wait_any(rpcs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 592, in wait_any
    running.__rpc.Wait()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py", line 112, in Wait
    rpc_completed = self._WaitImpl()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/runtime/apiproxy.py", line 116, in _WaitImpl
    rpc_completed = _apphosting_runtime___python__apiproxy.Wait(self)
DeadlineExceededError

Original issue reported on code.google.com by mckoss@gmail.com on 12 Dec 2010 at 1:02

GoogleCodeExporter commented 9 years ago

Original comment by mckoss@gmail.com on 12 Dec 2010 at 1:03