appstats

Google App Engine strange delay

独自空忆成欢 提交于 2019-12-06 02:49:29
问题 I improved a lot my code and now all the API run really fast, I also added memcache and I have a great hit ratio .. But sometimes I get meaningless delays. I attached here the most significant appstats screenshot: more than 20 seconds in total to run 90ms of RPCs; how is it possible? Where should I look to find the origin of those delays? I am really stuck because I don't understand what's happening between the RPCs and I don't know what else I can do in order to get more informations. Just a

Does AppEngine Cloud Trace require AppStats?

我的梦境 提交于 2019-12-06 02:27:44
Google's AppEngine has upgraded their Developer's Console and it includes a monitoring tool called Cloud Trace . Is this an improved version of the AppStats profiling tool? If so, can I remove the configuration files that were previously required, like appengine_config.py and the console path in app.yaml ? builtins: - appstats: on Cloud Trace is in beta, meaning "it's not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes", while AppStats is a supported component of App Engine. The implication, to me, is that you probably should not yet depend on Cloud

Java Appengine APPSTATS causing java out of memory error

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:53:01
I have several servlets in my java appengine app that do in memory sorting and take on the order of seconds to complete. These complete error free. However, I recently enabled appstats for appengine and started receiving the following error: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown

Google App Engine strange delay

只谈情不闲聊 提交于 2019-12-04 06:52:53
I improved a lot my code and now all the API run really fast, I also added memcache and I have a great hit ratio .. But sometimes I get meaningless delays. I attached here the most significant appstats screenshot: more than 20 seconds in total to run 90ms of RPCs; how is it possible? Where should I look to find the origin of those delays? I am really stuck because I don't understand what's happening between the RPCs and I don't know what else I can do in order to get more informations. Just a thought: each HTTP call is handled by the same GAE instance, right? Because my instances took a lot of

Appstats are only working for one WSGIApplication

99封情书 提交于 2019-12-01 01:12:53
I've split handlers between 2 python files (main.py and main_cms.py). app.yaml defines the URLs that each python file will handle. When I look at the Appstats, only the handlers from one of the 2 python files are profiled (the ones from main.py). The 'magic' of webapp_add_wsgi_middleware(app) always used to work just fine, until the split. How can I make Appstats recording apply to all handlers? appengine_config.py: def webapp_add_wsgi_middleware(app): from google.appengine.ext.appstats import recording app = recording.appstats_wsgi_middleware(app) return app app.yaml: builtins: - appstats: on

How to reduce the memory usage of Appstats on Google App Engine Java

拟墨画扇 提交于 2019-11-30 09:08:37
问题 This is related to question Java Appengine APPSTATS causing java out of memory error. Appstats seems to cause a java.lang.OutOfMemoryError on 128MB instances and I wonder whether there are ways to reduce the amount of logging. Is there a way to filter some package names from the stack trace? GAE API: @14ms memcache.Get real=7ms api=0ms Stack: com.google.appengine.tools.appstats.Recorder:290 makeAsyncCall() com.google.apphosting.api.ApiProxy:184 makeAsyncCall() com.google.apphosting.api

How to reduce the memory usage of Appstats on Google App Engine Java

余生颓废 提交于 2019-11-29 12:56:33
This is related to question Java Appengine APPSTATS causing java out of memory error . Appstats seems to cause a java.lang.OutOfMemoryError on 128MB instances and I wonder whether there are ways to reduce the amount of logging. Is there a way to filter some package names from the stack trace? GAE API: @14ms memcache.Get real=7ms api=0ms Stack: com.google.appengine.tools.appstats.Recorder:290 makeAsyncCall() com.google.apphosting.api.ApiProxy:184 makeAsyncCall() com.google.apphosting.api.ApiProxy:123 makeAsyncCall() com.google.appengine.api.memcache.MemcacheServiceApiHelper:104 makeAsyncCall()