tyrcho / openshift-cartridge-play2

Play2 In OpenShift as a cartridge
https://github.com/tyrcho/openshift-cartridge-play2
37 stars 42 forks source link

Unable to deploy large play applications on openshift #4

Closed critikaled closed 10 years ago

critikaled commented 10 years ago

remote: /var/lib/openshift/53121206500446cad20001b4/app-root/data//play/framework/build: line 19: 41729 Killed "$JAVA" ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:ReservedCodeCacheSize=192m -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M ${JAVA_OPTS} -Dfile.encoding=UTF-8 -Dplay.version="${PLAY_VERSION}" -Dplay.home=dirname $0 -Dsbt.boot.properties=dirname $0/sbt/sbt.boot.properties ${PLAY_OPTS} -jar dirname $0/sbt/sbt-launch.jar "$@" remote: An error occurred executing 'gear postreceive' (exit code: 137) remote: Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/53121206500446cad20001b4/play2

This is the error I am getting while deploying a larger application

tyrcho commented 10 years ago

-Xmx1536M means 1.5GB of memory ... do you have that much memory on your gear (default is 0.5 GB) ? Otherwise you can edit the build script to change the Xmx argument.

critikaled commented 10 years ago

Hi tyrcho, I am pretty new to openshift can you please elaborate where and how to edit build script. thanks in advance

tyrcho commented 10 years ago

the easiest way is to login (ssh) on your application, then edit this file : app-root/data/play-2.2.1/framework/build to change the Xms and Xmx arguments.

On Sun, Mar 2, 2014 at 4:37 PM, Sasi Kanth Lanka notifications@github.comwrote:

Hi tyrcho, I am pretty new to openshift can you please elaborate where and how to edit build script. thanks in advance

Reply to this email directly or view it on GitHubhttps://github.com/tyrcho/openshift-cartridge-play2/issues/4#issuecomment-36457032 .