Questions tagged [appstats]

60 questions
16
votes
1 answer

Configuring Java GAE Appstats for cron job

I configured my web.xml to enable appstats for my cron job. My cron job is handled by a servlet at the URL http://myapp.appspot.com/cron/myjob and executed once an hour. When I access the appstats admin interface at the URL…
Sydney
  • 11,964
  • 19
  • 90
  • 142
10
votes
2 answers

App Engine (python) skips webapp middleware (like Appstats) in production but works fine on dev server

I'm using App Engine python to host an application and would love to use Appstats and a couple of other libraries that run as middleware. However, when I set up middleware through appengine_config.py (as shown below) it works on the dev server but…
7
votes
3 answers

How can I suspend appstats for a single request on App Engine/Java?

I normally run appstats fulltime on my sandbox appid. However, I have one complicated operation (basically rebuilding the stock database) that causes appstats to blow up my instance, throwing OutOfMemoryErrors. Even with larger instance sizes, it…
stickfigure
  • 13,458
  • 5
  • 34
  • 50
6
votes
1 answer

What do the Appstats values mean?

Take these stats from a post from the App Engine blog as an example: real = 107ms cpu = 141ms api = 388ms overhead = 1ms RPC Total: 63ms (388ms api) Grand Total: 107ms (530ms cpu + api) I think I understand overhead: it gives the amount…
fgm2r
  • 4,490
  • 1
  • 17
  • 14
6
votes
2 answers

Google App Engine strange delay

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…
Michele Orsi
  • 754
  • 4
  • 17
5
votes
1 answer

What is template expansion and how can we reduce it if our google app engine application?

I am making my first app on google app engine. Before i was just checking the correct results for my app. But then my app started responding really late. Then i went through google app engine docs and now started using appstats. I am really new to…
Piscean
  • 3,069
  • 12
  • 47
  • 96
4
votes
0 answers

What are the capabilities and limitations of Appstats for Google App Engine cost tracking?

I stumbled upon an old but interesting blog post while searching for the cost of creating an App Engine instance (as part of a greater effort to most accurately associate Google Cloud Platform project costs with App Engine activity). Specifically,…
4
votes
3 answers

Disable Appstats logging

I'm using Appstats as documented here: http://code.google.com/appengine/docs/python/tools/appstats.html It works fine, but every request now logs an info message like this: Saved; key: appstats:039300, part: 65 bytes, full: 12926 bytes, overhead:…
Saxon Druce
  • 17,406
  • 5
  • 50
  • 71
4
votes
2 answers

Java Appengine APPSTATS causing java out of memory error

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…
aloo
  • 5,331
  • 7
  • 55
  • 94
4
votes
1 answer

NDB tasklets not visible in appstats

Why is it that the line numbers from methods decorated with @ndb.tasklet are not present in appstats? In our app we have a convention to include both a synchronous and an asynchronous version of functions, something like: def do_something(self,…
Attila O.
  • 15,659
  • 11
  • 54
  • 84
4
votes
2 answers

How can I debug pauses in execution in the App Engine production environment?

When looking at the Appstats graphs for my Google App Engine/Java application, I sometimes see gaps of seemly unexplainable time between RPCs. In the attached screenshot, there is a gap of almost 2 seconds between two calls to MemcacheService.get…
Joakim
  • 61
  • 6
3
votes
1 answer

How to prevent multiple RPC RunQuery calls on single JDO Query execute()?

I have configured Appstats on my Java Appengine application and noticed that a single JDO Query which returns several objects results in a separate RunQuery RPC call for every object retrieved by the Query. Shouldn't a Query be done in a single RPC…
Jorge Cardoso
  • 325
  • 1
  • 11
3
votes
3 answers

How to request a trace with google cloud-trace

Google Cloud has a powerful tracing tool for analyzing latency of requests and RPCs. But it seems to just pick some requests that it finds deserving of traces. Sometimes that's good enough, you can just browse through existing traces. But if…
3
votes
1 answer

Does AppEngine Cloud Trace require AppStats?

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,…
3
votes
0 answers

What do negative cost values mean in Appstats?

Appstats is showing negative values for some of my requests on my Google App Engine development server. For example, real=3604ms api=0ms overhead=1ms (13 RPCs, cost=-3588220, billed_ops=[DATASTORE_READ:4, DATASTORE_WRITE:-35885]) …
Greg
  • 33,450
  • 15
  • 93
  • 100
1
2 3 4