除了'1000'的限制(查询返回记录不能超过1000条)外, 今天发现GAE还有一个'1M'的限制.
我在用Memcache缓存一个大List时碰到MemoryError, error message写明了一个cached item不能超过1000000bytes. 跑到group
上问了一下
. Aral也碰到了同样的问题. 除了memcache外, 原来GAE里面很多地方都有1M的限制
(以下翻译自Aral的blog
):
- 一个数据结构不能大于1M, 否则会抛出MemoryError
- Response不能返回超过1M的内容, 否则会抛出异常:'TTP response was too large'
- 一个Model的实例(相当于一条数据库记录)不能超过1M, 否则会遇到RequestTooLarge 异常. (我曾遇到过这个异常)
Prateek
在回复中还加了一条: Image API 也有1M的限制; Google可能是不希望某个程序员的BT代码把服务器拖垮.
我们从.net的GC运行原理也了解频繁创建生存周期比较短的大对象会影响到程序性能. 在.net中这个标准是85000字节.
大于这个标准的对象在一个专门的堆中分配, 而且一直算是第二代. 因此要么就是这块内存一直不被回收, 要么就是频繁收集第二代对象.
欢迎和我交流 Google App Engine的开发. 欢迎到我开发的第一个GAE app看看: http://feedzshare.appspot.com
kuber
@FeedzShare
分享到:
相关推荐
Google云端的一个重要部分,主要介绍了Google中App Engine的限制。
This practical guide shows intermediate and advanced web and mobile app developers how to build highly scalable Java applications in the cloud with Google App Engine. The flagship of Google's Cloud ...
A good book to learn Google App Engine.
Google App Engine Documentation
Eclipse Google 插件 Google App Engine SDK for Java Google App Engine文档 按钮 Google App Engine 开发包
在搭建WebRTC(AppRTC)时,我们会遇到需要部署Google App Engine的难题,并且最近墙的厉害,所以我特地把我珍藏的Google App Engine 最新版(2020-7-5)分享出来,希望可以方便想搭建WebRTC(AppRTC)的同学们
clock.rar 这是我今天做的一个基于google app engine写的一个在该平台上开发app的示例,通过该示例的学习,我们可以很快上手学会怎样在GAE上开发属于你的应用程序了,希望对大家有用!
Google App Engine文档
Google App Engine for Java 中文指南,Google App Engine for Java 中文指南
云应用开发——Google App Engine & Google Web Toolkit入门指南 Google App Engine入门 Google App Engine 开发人员指南
Google App Engine is a key component of the Google Cloud Platform and one of the most comprehensive cloud services. Together with Python, the first programming language ever supported by the platform,...
google app Engine for java中文api,
Using Google App Engine
Google App Engine is a web application hosting service. By “web application,” we mean an application or service accessed over the Web, usually with a web browser: storefronts with shopping carts, ...
云端代码Google App Engine编程指南 人民邮电出版社 高清带书签
Google App Engine 入门
Google App Engine 入门教程 eclipse插件 详情请参考我的博客
google app engine开发实例,实现了GAE的插入,更改,删除,搜索功能
appengine-java-sdk-1.3.1 GoogleApp开发的SDK(Java版)