Increase memory limit above 2GB or make it configurable

XMLWordPrintable

      rake assets:precompile RAILS_ENV=production runs out of memory.

      There is no easy way to make this task incremental, and it consumes a significant amount of RAM in the process. The current 2 GB limit is leaving us unable to build our Ruby on Rails project (Maven 3.3.9, JRuby 9.1.2.0, PostgreSQL 9.2). Experimentally, it looks like we're about 500 MB short, and the app is by no means notably large.

      Either increasing the RAM limit across the board or making it configurable for different plans (perhaps some kind of EC2 inspired model of tiered build machines?) would change this from being unusable out of the gate.

      [ERROR] Failed to execute goal ...precompile-assets (default-precompile-assets) on project [project]: precompile assets failed: precompile assets with command java -jar /root/.m2/repository/org/jruby/jruby-complete/9.1.2.0/jruby-complete-9.1.2.0.jar -S /opt/atlassian/bitbucketci/agent/build/athena/.gems/bin/rake assets:precompile RAILS_ENV=production failed with return code 137 -> [Help 1]
      

      We're (relatively) happily using Bamboo now and are excited to jump over to Pipelines - when it can support our build of course.

            Assignee:
            Unassigned
            Reporter:
            Toby Murray
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: