我注册了OpenShift,并创建了一个基于WildFlyJava 7的应用,当我部署时,我看到

remote: target/wildfly-8.1.0.Final/modules/system/layers/base/org/jboss/common-core/main/jboss-common-core-2.2.22.GA.jar
remote: stderr: rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
remote: rsync: write failed on "/var/lib/openshift/53cc3d974382ec1f72000304/app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system/layers/base/org/jboss/common-core/main/jboss-common-core-2.2.22.GA.jar": Disk quota exceeded (122)
remote: rsync error: error in file IO (code 11) at receiver.c(301) [receiver=3.0.6]
remote: rsync: connection unexpectedly closed (17468 bytes received so far) [sender]
remote: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
remote:
remote: For more details about the problem, try running the command again with the '--trace' option


然后,我登录到计算机,查看占用了太多空间,我意识到wildfly本身已经吞噬了所有空间

 du -h * | sort -rh | head -50
592M    wildfly
317M    wildfly/usr/lib/jvm/jdk1.8.0_05
317M    wildfly/usr/lib/jvm
317M    wildfly/usr/lib
317M    wildfly/usr
166M    wildfly/usr/lib/jvm/jdk1.8.0_05/jre
165M    wildfly/usr/lib/jvm/jdk1.8.0_05/jre/lib
147M    app-root/runtime/repo/target
147M    app-root/runtime/repo
147M    app-root/runtime
147M    app-root
136M    wildfly/versions/8
136M    wildfly/versions
135M    app-root/runtime/repo/target/wildfly-8.1.0.Final
120M    app-deployments/2014-07-20_18-21-00.502/repo/target
120M    app-deployments/2014-07-20_18-21-00.502/repo
120M    app-deployments/2014-07-20_18-21-00.502
120M    app-deployments
118M    wildfly/versions/8/modules
118M    wildfly/usr/lib/jvm/jdk1.8.0_05/lib
118M    wildfly/modules
116M    wildfly/versions/8/modules/system/layers/base
116M    wildfly/versions/8/modules/system/layers
116M    wildfly/versions/8/modules/system
116M    wildfly/modules/system/layers/base
116M    wildfly/modules/system/layers
116M    wildfly/modules/system
116M    app-root/runtime/repo/target/wildfly-8.1.0.Final/modules/system/layers/base
116M    app-root/runtime/repo/target/wildfly-8.1.0.Final/modules/system/layers
116M    app-root/runtime/repo/target/wildfly-8.1.0.Final/modules/system
116M    app-root/runtime/repo/target/wildfly-8.1.0.Final/modules
107M    app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final
95M wildfly/versions/8/modules/system/layers/base/org
95M wildfly/modules/system/layers/base/org
95M app-root/runtime/repo/target/wildfly-8.1.0.Final/modules/system/layers/base/org
90M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system/layers/base
90M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system/layers
90M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system
90M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules
68M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system/layers/base/org
59M wildfly/usr/lib/jvm/jdk1.8.0_05/jre/lib/i386
49M wildfly/usr/lib/jvm/jdk1.8.0_05/lib/missioncontrol
43M wildfly/usr/lib/jvm/jdk1.8.0_05/lib/missioncontrol/plugins
37M wildfly/versions/8/modules/system/layers/base/org/jboss
37M wildfly/modules/system/layers/base/org/jboss
37M app-root/runtime/repo/target/wildfly-8.1.0.Final/modules/system/layers/base/org/jboss
32M wildfly/usr/lib/jvm/jdk1.8.0_05/lib/visualvm
26M wildfly/usr/lib/jvm/jdk1.8.0_05/jre/lib/ext
21M wildfly/usr/lib/jvm/jdk1.8.0_05/lib/visualvm/platform
21M app-deployments/2014-07-20_18-21-00.502/repo/target/wildfly-8.1.0.Final/modules/system/layers/base/org/jboss


我该如何解决这个问题? Wildfly是否不适合免费计划?

最佳答案

如果您做了一个DIY磁带,然后自己加载了wildfly,那么您使用的语言是正确的,框架库将消耗您的部分配额。

编辑
如果您使用此处的wildfly快速入门,https://www.openshift.com/quickstarts/wildfly-I还将使用您的一些配额。我启动了一个简单的示例,并获得了以下内容

\> ls
app-deployments  app-root  git  wildfly

\> quota -s
Disk quotas for user 53cebb8c5973caacc500017c (uid 1317):
Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/EBSStore01-user_home01
             593M       0   1024M            5676       0   80000


话虽这么说,最好注册青铜计划并为大型Java应用程序增加更多的存储空间(每GB每月$ 1)。

10-07 16:38
查看更多