简体   繁体   English

Google App Engine(java)-由于超出了应用程序大小限制,导致应用程序上载失败-(免费帐户)

[英]Google App Engine(java) - App upload failed due to app size limit exceeded - (free account)

i am using Google app engine for my development, my project involves around 60 PDfs to be available for users to download. 我正在使用Google App Engine进行开发,我的项目涉及大约60个PDf ,可供用户下载。

when i try to upload the project by clicking deploy button in eclipse i get the error app limit exceeded . 当我尝试通过单击eclipse中的 deploy按钮上载项目时,出现超出错误的应用程序限制

i just want to know if i try to use the paid account is there is a different in the application size in paid account or not? 我只想知道我是否尝试使用付费帐户,付费帐户中的应用程序大小是否不同?

as far as i know its 150 MB for now 据我目前所知150 MB

You should use Blobstore service to store your PDF files and keep application only for files needed by your application logic and presentation, not data. 您应该使用Blobstore服务存储PDF文件,并仅对应用程序逻辑和表示所需的文件保留应用程序,而不对数据保留应用程序。 Here is description of the Blobstore: 这是Blobstore的说明:

The Blobstore API allows your app to serve data objects, called blobs, that are much larger than the size allowed for objects in the Datastore service. Blobstore API允许您的应用为数据对象(称为Blob)提供服务,该对象比Datastore服务中对象允许的大小大得多。 Blobs are created by uploading a file through an HTTP request. 通过通过HTTP请求上传文件来创建Blob。 Typically, your apps will do this by presenting a form with a file upload field to the user. 通常,您的应用程序会通过向用户显示带有文件上载字段的表单来实现此目的。 When the form is submitted, the Blobstore creates a blob from the file's contents and returns an opaque reference to the blob, called a blob key, which you can later use to serve the blob. 提交表单后,Blob存储区将从文件的内容创建一个Blob,并返回对该Blob的不透明引用,称为Blob键,您以后可以使用该Blob键来提供该Blob。

All good advice above, try to avoid putting content like that in your code. 以上所有好的建议,请尽量避免在代码中放入类似的内容。 My app hit this issue and only has about 10MB of code/images/resources. 我的应用程序遇到了这个问题,只有大约10MB的代码/图像/资源。 What takes up a lot of space is the GWT compiling of 15 permutations of your app. GWT会编译您的应用程序的15个排列,从而占用大量空间。

One thing that helped me, was changing my GWT javascript generation output style from Details to Obfuscated, resulting in much smaller code. 帮助我的一件事是,将我的GWT javascript生成的输出样式从“详细信息”更改为“模糊处理”,从而使代码更小。 You can also limit the number of permutations being created. 您还可以限制创建的排列数。

https://developers.google.com/web-toolkit/doc/1.6/FAQ_DebuggingAndCompiling#Can_I_speed_up_the_GWT_compiler ? https://developers.google.com/web-toolkit/doc/1.6/FAQ_DebuggingAndCompiling#Can_I_speed_up_the_GWT_compiler吗?

upto 10MB data u can upload to ur app engine see following link 最多10MB的数据,您可以上传到您的应用程序引擎,请参见以下链接

http://code.google.com/appengine/docs/quotas.html http://code.google.com/appengine/docs/quotas.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM