General Discussion

General discussion on using Go including questions and tips

This is a public Discussion Area  publicRSS

Post

    Chris Moyer
    Increasing maven2 heap size
    Post posted April 23, 2009 by Chris Moyer
    4368 Views, 1 Comment
    Topic:
    Increasing maven2 heap size
    Body:

    I've got a simple task set up to call out to maven 2:

          <tasks>
    <exec command="mvn" args="site:site" workingdir="dev/register" />
    </tasks>

    Maven is running out of heap on this task. The usual mechanism for increasing the maven heap size is through the MAVEN_OPTS environment variable.

    Is there any way to set an environment variable per task? If not, what would be the best way to set the variable for all Cruise spawned processes?

    Cruise 1.2 on Centos 5.2

    Thanks!

    Chris

    Comment

    • Wei Xu
      posted April 24, 2009 by Wei Xu

      Hi Chris Moyer:

        The current version of cruise doesn't support pass environment variable to tasks, we'll consider this feature later. You can use one of the following work arounds to do this:

      1. write a script to do the mvn task, and put your script into cruise
      2. change system environment variable on each agent.

      Best Regards,

      Xu Wei