google-app-engine

Google App Engine - How can I improve my cold start JVM time?

I'm not new to improving my cold start time, I've spent many hours trying different things. I'd like if possible to know exactly what the Google App Engine does during a cold start. I have a log statement as described here http://code.google.com/intl/nl/appengine/kb/java.html#performance to show when my code first gets control. I have...

Google App Engine - Request was aborted after waiting too long to attempt to service your request

I get this error sometimes. Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quota...

Google App Engine - Is this just a fluke, or could changing the version of an app improve cold-start time?

Here is the situation: I had an app with a cold start time of about 4 seconds. I was trying to improve the cold start time by removing a bunch of libraries and code I didn't really need. After doing that the cold start time was about 3 seconds latency, and 3 seconds CPU time used. I changed the version number in appengine-web.xml, and...

Why does the first access to a JSP file take longer on the Google App Engine?

Here is my test: I access a servlet to get the JVM to load (absorb the loading request). Then i access a JSP that has <%= 5+7 %> in it and nothing else. The first access to this JSP uses 350ms of CPU time and has latency of 200ms. Subsequent accesses only have latency and cpu time of about 20ms. Why does the first access to the jsp a...

Artificial Intelligence in online game using Google App Engine

I am currently in the planning stages of a game for google app engine, but cannot wrap my head around how I am going to handle AI. I intend to have persistant NPCs that will move about the map, but short of writing a program that generates the same XML requests I use to control player actions, than run it on another server I am stuck on...

How-to delete indexes in Google App Engine (Java)?

Is there a way to delete unused indexes in Google App Engine Java application? The only one way I was able to find is to create an empty Python GAE application and run the following command: appcfg.py vacuum_indexes /path/to/myapp/ Is there a more intelligent way? ...

Extend Google AppEngine User in JRuby?

I'm working with JRuby and DataMapper running on Google AppEngine. I want to add a property to the AppEngine::User like :active_calendar which is a reference to a Calendar kind. I was able to do something in Python this way using a back reference. Are these possible in JRuby? Is this possible? Do I need to subclass the User? Can I even...

Custom keys for Google App Engine models (Python)

First off, I'm relatively new to Google App Engine, so I'm probably doing something silly. Say I've got a model Foo: class Foo(db.Model): name = db.StringProperty() I want to use name as a unique key for every Foo object. How is this done? When I want to get a specific Foo object, I currently query the datastore for all Foo objects ...

Does the Google App Engine SDK version you build your app with affect anything on the production app engine?

If I develop with version 1.2.6 of the App Engine SDK, once I publish to production will my app still be using version 1.2.6 of all of the libraries on the production app engine? Or will it automatically use the latest version of the core app engine libraries? ...

Adding JAR to eclipse project

I am trying to use JTidy on google app engine. In Eclipse, I add JTidy jar to the build path and add the jar again as the source attachment. When I make a tidy object it shows up as a org.w3c.tidy.Tidy. but when I run my app i get the error java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy. Am I not adding the jar correctly? Does JTi...

How to upload 6000 record to Google Datastore from csv file

http://code.google.com/appengine/docs/python/tools/uploadingdata.html is not clearly understand. Where i should call the bulkloader.py or appcfg.py? Should i import the csv file to local Google App Engine SDK first? How to keep the upload and download data process in existing application for datastore synchronization? ...

GAE - Getting TypeError requiring class instance be passed to class's own method...

I'm really new to programming... I set up a class to give supporting information for Google's User API user object. I store this info in the datastore using db.model. When I call the okstatus method of my user_info class using this code: elif user_info.okstatus(user): self.response.out.write("user allowed") I get this error: un...

What is the length of time to send a list of 200,000 integers from a client's browser to an internet sever?

Over the connections that most people in the USA have in their homes, what is the approximate length of time to send a list of 200,000 integers from a client's browser to an internet sever (say Google app engine)? Does it change much if the data is sent from an iPhone? How does the length of time increase as the size of the integer list...

bosh hosting for google app engine

any recommendation on which company providing scalable bosh hosting? p/s: is there exist any scalable jabber server +bosh service using openfire? ...

How to do batch Google DataStore key lookup query in JDO

I have about 50k entities stored in appengine. I am able to look up an individual record via the GQL admin interface with a query like: SELECT * FROM Pet where __key__ = KEY( 'Pet','Fido') But I'm having trouble figuring out how to do a batch version of this via JDO. Right now I have this: PersistenceManager pm = ...; for(...

saving appengine mail from spam filters

One of my clients uses Trend Micro InterScan Messaging Security to protect their internal mail services. Suddenly InterScan decided to filter out all messages coming from Google App Engine. Unfortunately they haven't been able to whitelist the sender address as each e-mail gets a different one. For example, *3ckihSOVMMHlZHSL.JSMMHlZHSL...

Using XMPP for push user notifications on Android - any way to target these so they don't go to Google Talk etc

I want to use XMPP to push data to my client which would translate to a notification for the user, and plan on using their google-id for login to my application. The way I understand XMPP is that its a simple message that goes directly to the adress, but I want the client to get it as instructions and turn it into gamestate information....

How to get Eclipse + PyDev + App Engine + Unit testing to work?

I want to run my unit tests for a Python Google App Engine project using Run As => Python unit-test But when I try that all my Model tests bail with the error message: BadArgumentError: app must not be empty. Anyone got this to work? NB: The tests runs fine using Nose --with-gae. But I want the PyDev integration with hyperlinki...

Get the Model context of a Key object in Datastore (App Engine)

I'd like to bypass some frequent queries by storing str(key) in memcache. When I get the encoded_key back from memcached, I can reconstruct the key with Key(encoded=encoded_key). But how can I query the actual object from the key? A possibility would be to use GqlQuery('SELECT * FROM ' + Key(encoded_key).kind() + \ ' WHERE __key__ ...

How to Communicate between minifb and a GAE-Hosted Silverlight Client

I have a minifb app (technically gminifb) running on Google App Engine with a bunch of handlers for processing all kinds of requests from a Silverlight client. What's the recommended approach for adding the FB GET variables, such as fb_sig, to the HTTP requests? I believe I can technically pass the session key and uid directly and get t...