CloudFoundryでJettyRunnerアプリケーションを起動しようとしています。コードは
https://github.com/simbo1905/ZkToDo2
ローカルで開始できます
java -Djetty.host=localhost -Djetty.port=8080 -DDATABASE_URL=jdbc:postgresql://postgres:postgres@localhost/postgres -jar jetty-runner-jmx.jar zktodo2.war
だから私はpostgresqlを作成しました
vmc create-service postgresql pgsql
jarファイルとwarをzip形式で圧縮してから、Cloud Foundryにデプロイしようとすると、メモリ不足エラーが発生します。何が得られますか?
simbo$ vmc push zktodo2 --path=cf.zip
Detected a Standalone Application, is this correct? [Yn]: Y
1: java
2: node
3: node06
4: ruby18
5: ruby19
Select Runtime [java]: \1
Selected java
Start Command: java -Djetty.host=${VCAP_APP_HOST} -Djetty.port=${VCAP_APP_PORT} -DDATABASE_URL=jdbc:postgresql://postgres:postgres@localhost/postgres -jar jetty-runner-jmx.jar zktodo2.war
Application Deployed URL [None]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]: 1G
How many instances? [1]:
Bind existing services to 'zktodo2'? [yN]: y
1: pgsql
Which one?: 1
Create services to bind to 'zktodo2'? [yN]:
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
Creating Application: OK
Binding Service [pgsql]: OK
Uploading Application:
Checking for available resources: OK
Processing resources: OK
Packing application: OK
Uploading (0K): OK
Push Status: OK
Staging Application 'zktodo2': OK
Starting Application 'zktodo2': .
Error: Application [zktodo2] 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
Delete the application? [Yn]:
何が得られますか?