Hi Tim,

thx for your reply. forgot to mention that i'm using python. i didn't use
apptrace but i did profiling and optimization using appstats

but one of the memory issue seems to be thrown from wsgi middleware
(appstats?) when it's doing the recording. correct me if i'm wrong, here is
the completed traceback.



   1. E2011-02-10 18:30:12.361

   <type 'exceptions.MemoryError'>:
   Traceback (most recent call last):
     File 
"/base/data/home/apps/gaewsdev/6.348249895332861938/admin/removeUser.py",
line 219, in <module>
       main()
     File 
"/base/data/home/apps/gaewsdev/6.348249895332861938/admin/removeUser.py",
line 216, in main
       run_wsgi_app(application)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 97, in run_wsgi_app
       run_bare_wsgi_app(add_wsgi_middleware(application))
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 117, in run_bare_wsgi_app
       for data in result:
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/appstats/recording.py",
line 859, in appstats_wsgi_wrapper
       end_recording(500, firepython_set_extension_data)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/appstats/recording.py",
line 933, in end_recording
       memcache.delete(lock_key(), namespace=config.KEY_NAMESPACE)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/api/memcache/__init__.py",
line 513, in delete
       self._make_sync_call('memcache', 'Delete', request, response)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 86, in MakeSyncCall
       return stubmap.MakeSyncCall(service, call, request, response)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 281, in MakeSyncCall
       rpc = stub.CreateRPC()
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/runtime/apiproxy.py",
line 193, in CreateRPC
       return RPC()
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/runtime/apiproxy.py",
line 103, in __init__
       super(RPC, self).__init__(*args, **kargs)
     File 
"/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py",
line 62, in __init__
       self.request = request

   2. C2011-02-10 18:30:12.376

   Exceeded soft process size limit with 299.793 MB after servicing 1
requests total

   3. I2011-02-10 18:30:12.411

   This request caused a new process to be started for your
application, and thus caused your application code to be loaded for
the first time. This request may thus take longer and use more CPU
than a typical request for your application.

   4. W2011-02-10 18:30:12.411

   After handling this request, the process that handled this request
was found to be using too much memory and was terminated. This is
likely to cause a new process to be used for the next request to your
application. If you see this message frequently, you may have a memory
leak in your application.





On 11 February 2011 00:15, Tim Hoffman <zutes...@gmail.com> wrote:

> Hi
>
> This is a problem in your application code.  As the error says, you are
> using too much memory and the instance is being killed.
>
> You haven't said if you use python or java.  If you are using python then
> have a look at apptrace (The apptrace package provides a WSGI middleware for
> tracking memory usage in Google App Engine Python applications.)
>
>
> http://docs.pylonsproject.org/projects/pyramid_tutorials/dev/wiki2_auth/index.html
>
> Bottom line is you will need to do some profiling and debugging to work out
> where you are either consuming too much memory or leaking (keeping around
> globals that grow for instance).
>
> Rgds
>
> T
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to