关于部署cloudfoundry目前还没支持的框架应用的问题

volador 发布于 2012/11/07 18:39
阅读 307
收藏 0

@1inus 你好,想跟你请教个问题:

看到你将tomcat7的内容部署到cloudfoundry上,我参照了这种做法想将play1.2.5的一个应用推送到cloudfoundry上,过程很顺利,但结果却不尽如人意,发现这个应用总是启动不了,好像是说启动不了jvm,我又反复尝试了几次,发现还是不行,不知道是否是我哪里做错了,希望你能给我一点指点,谢谢。

我把详细过程贴出来:

feiyu@ubuntu :~/desktop/play-1.2.5$ ls

documentation\  framework\  hello\  modules\  play  python\  resources\  support\

feiyu@ubuntu :~/desktop/play-1.2.5$ vmc push playapp

Would you like to deploy from the current directory? [Yn]: y

Detected a Standalone Application, is this correct? [Yn]: y

1: java

2: java7

3: node

4: node06

5: node08

6: ruby18

7: ruby19

Select Runtime [java]: 1

Selected java

Start Command: ./play run hello

Application Deployed URL [None]: helloplayapp.cloudfoundry.com

Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]:

How many instances? [1]:

Create services to bind to 'playapp'? [yN]: n

Would you like to save this configuration? [yN]: n

Creating Application: OK

Uploading Application:

 Checking for available resources: OK

 Processing resources: OK

 Packing application: OK

 Uploading (84K): OK  

Push Status: OK

Staging Application 'playapp': OK                                              

Starting Application 'playapp': .

Error: Application [playapp] failed to start, logs information below.


====> /logs/stderr.log <====


Could not create the Java virtual machine.


====> /logs/stdout.log <====


Error occurred during initialization of VM

Could not reserve enough space for object heap

~        _            _

~  _ __ | | __ _ _  _| |

~ | '_ \| |/ _' | || |_|

~ |  __/|_|\____|\__ (_)

~ |_|            |__/  

~

~ play! 1.2.5, http://www.playframework.org

~

~ Ctrl+C to stop

~



Delete the application? [Yn]:


加载中
0
水牛叔叔
水牛叔叔
我没看出问题来。请问在你本机上应用运行起来没有呢?最有可能是你的 “ Start Command: ./play run hello“,我不清楚你的play run hello是在哪个路径下的。
volador
volador
恩,谢谢,play里面自带netty,弄了很久都没弄成功,当我把play应用转成war形式后很方便就放上去了。
0
水牛叔叔
水牛叔叔

估计跟你web容器有关吧。我部署的是tomcat,但是从上面的介绍看,你部署的不是tomcat。你去查查cloudfoundry有没有支持你上传的容器(我查不出来它到底支持啥web容器)。

这里是一篇介绍上传自带web容器的文章,供参考:http://cnblog.cloudfoundry.com/2012/07/20/268/

返回顶部
顶部