setting JVM options for conscript apps

90 views
Skip to first unread message

Eduardo Pareja Tobes

unread,
Jun 5, 2012, 11:41:47 AM6/5/12
to conscri...@googlegroups.com
Hi everyone,

We're considering using conscript for app distribution/deployment/running, and it looks great; there's just one thing we really need, and it is being able to set JVM params (heap space, in particular) for conscript apps. Right now, it looks to me that this is hard-coded to 1GB in the shell script that conscript generates when installing a conscript app.

Is there a way to configure this when installing a conscript app? or, when runnning it? 

an easy hack could consist in including an env var named ${app}_JVM_OPTS in the generated script; for example, for softprops/pj the generated script in my machine would look like


#!/bin/sh
java $CONSCRIPT_OPTS -Xmx1G $PJ_JVM_OPTS -jar /home/eparejatobes/.conscript/sbt-launch.jar @/home/eparejatobes/.conscript/softprops/pj/pj/launchconfig "$@"

thanks 

Doug Tangren

unread,
Jun 5, 2012, 11:51:01 AM6/5/12
to conscri...@googlegroups.com
On Tue, Jun 5, 2012 at 11:41 AM, Eduardo Pareja Tobes <eduardo.pa...@gmail.com> wrote:
Hi everyone,

We're considering using conscript for app distribution/deployment/running, and it looks great; there's just one thing we really need, and it is being able to set JVM params (heap space, in particular) for conscript apps. Right now, it looks to me that this is hard-coded to 1GB in the shell script that conscript generates when installing a conscript app.

Is there a way to configure this when installing a conscript app? or, when runnning it? 

an easy hack could consist in including an env var named ${app}_JVM_OPTS in the generated script; for example, for softprops/pj the generated script in my machine would look like



It should be straightforward to add a support for  $JVM_OPTS here, https://github.com/n8han/conscript/blob/master/src/main/scala/apply.scala#L51-60, If there are no takers I can do it.
Reply all
Reply to author
Forward
0 new messages