You get an amount of ram close to but not always equal to 128M or ram PER instance.
Python 2.7 uses more memory for Hello World, and less for most operations. They both use the same for storing things like Data Caches.
You can use the local instance in addition to data store. Not instead. My apps waterfall from edge cache to instance memory to memcache to datastore
Use all the ram you can, it is free. Don’t count on it being there, don’t over use it, and stick to the API’s and Libraries for accessing it, or the world will end violently.
No, I won’t share code for doing this it is our biggest selling point.

--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
You get an amount of ram close to but not always equal to 128M or ram PER instance.Python 2.7 uses more memory for Hello World, and less for most operations. They both use the same for storing things like Data Caches.You can use the local instance in addition to data store. Not instead. My apps waterfall from edge cache to instance memory to memcache to datastore
Use all the ram you can, it is free. Don’t count on it being there, don’t over use it, and stick to the API’s and Libraries for accessing it, or the world will end violently.No, I won’t share code for doing this it is our biggest selling point.
<image001.jpg>
-----Original Message-----
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of JH
Sent: Sunday, November 20, 2011 5:17 PM
To: Google App Engine
Subject: [google-appengine] Re: Using RAM instead of datastore - any limits?You get 128 megs of ram for front end instances. Also, so far my experience says that py 2.7 uses quite a bit more ram just to run hello world.On Nov 20, 5:58 pm, ThePiachu <thepia...@gmail.com> wrote:> My application relies on accessing a lot of simple stored data and> displaying it. I'm considering storing all data in the RAM of the> application in order not to have problems with datastore access> quotas, but I'm not sure if there are any limits of how much data can> be stored this way. Is there any limit on how much data can one store> in say, a vector in RAM?--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-a...@googlegroups.com.To unsubscribe from this group, send email to google-appengi...@googlegroups.com.For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Don't forget that caching your entities in instance memory will mean that it will become stale if the entity is updated from another instance, and there is no way of knowing that happens without querying the datastore.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/OfGkDVe2NhwJ.
I have local memory as part of my Caching solution which is a Reverse Caching Proxy. You can’t have a very big site in Local memory because you only get about 60 megs effective and memory isn’t shared between instances.
You have to remember that there is garbage collection, indexing, pointers, all the variables you loaded, and all the imports.
You get 128 soft limit, you start hitting soft limit at about 110 megs depending on the requests per second. If your RPS gets very high Garbage collection doesn’t keep up and you use more memory. Unless you are really careful about how you use your variables lots of times you will end up with more than one copy of things in memory. 128M is nothing. When you are working with single threads it isn’t so bad, things flush with each request, but when you have multiple threads everything is in memory at once.
Quit complaining, if you write good code 128 will do you, just don’t try to put your entire datastore in ram, that’s not what it is there for.
I was much happier on python. Ram is nice, but it’s per instance. If you have 10 instances running you may have 600 megs of ram, but you really only have 60 per. I am a “proxy” as you say, and ram cache hits are very small compared to memcache.
If you are caching a site that has 1000 pages at 60k per page you are not going to keep all of that in ram on GAE. Not going to keep all that in Memcache either. We have done some Very clever things to get more stuff in to cache and to serve it faster. Optimization has really been about balancing speed, cost, and resource usage.