[英]Why does my war take so much space when deployed on GAE?
When I compile my GAE/GWT (Java) project (compiling all 6 permutations), the whole WAR folder has a weight of 93.9 Mo on my computer (extended Mac OS journaled). 当我编译我的GAE / GWT(Java)项目(编译所有6个排列)时,整个WAR文件夹在我的计算机上的权重为93.9 Mo(扩展的Mac OS日志)。 When deployed on GAE, the Admin console (Quota Details page) shows that my app takes 18% of the free quota.
在GAE上部署时,管理控制台(配额详细信息页面)显示我的应用程序占用了免费配额的18%。 Meaning 180Mb.
含义180Mb。 How is this possible ?
这怎么可能 ? I am missing something ?
我错过了什么? Is google using a filesystem with big blocks ??
谷歌是否使用大块文件系统? How to optimize the usage of the available storage space ?
如何优化可用存储空间的使用? I'm already JARing my 'classes' folder, but the gain (in terms of space...) is not relevant.
我已经JARing我的'classes'文件夹了,但是增益(就空间而言......)是不相关的。
The biggest problem (from my point of view) is that my own GWT + server side code + 'external' library (PDFJet) is taking a tiny 1.9Mb. 最大的问题(从我的角度来看)是我自己的GWT +服务器端代码+'外部'库(PDFJet)需要1.9Mb。 All the rest (>91Mb) is taken by appengine's and datanucleus own libraries.
所有其余的(> 91Mb)由appengine和datanucleus自己的库来完成。 Why do we need to include those in the deployment ?
为什么我们需要在部署中包含这些内容? They are used by everyone.
它们被大家使用。 I think it would be better for all of us when these would be centrally and automatically deployed.
我认为,当这些将集中和自动部署时,对我们所有人来说会更好。 I don't get it.
我不明白。
Any advices or comments on this ? 对此有何建议或意见?
You need to ensure GWT post compilation output is tuned towards production deployment and in your case for "cloud" . 您需要确保将GWT后编译输出调整为生产部署,并在您的情况下调整为“云” 。
1) GWT Compiler flag for STYLE IS OBF 1)STYLE IS OBF的GWT编译器标志
2) GWT Compilation turns off stack trace emulator feature. 2)GWT编译关闭堆栈跟踪仿真器功能。 In .gwt.xml
在.gwt.xml中
<set-property name="compiler.stackMode" value="strip" />
1) GWT Compiler flag for extra and deploy is used to direct away mostly deployment redundant files away from WAR file. 1)用于额外和部署的 GWT编译器标志用于将大部分部署冗余文件远离WAR文件。 I am guessing you have massive folder called deploy in your WEB-INF.
我猜你在你的WEB-INF中有一个名为deploy的大文件夹。
Edit - 编辑 -
1) Reference to GWT Compiler options - https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging 1)参考GWT编译器选项 - https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging
2) Reference to Google Group discussion - https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/-WtEfDvUI4g 2)参考Google Group讨论 - https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/-WtEfDvUI4g
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.