Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46120

OOM: MultiJob and adding value to end of environment variable, eg. path

    Details

    • Similar Issues:

      Description

      Multijob fails to handle (global) environment variable that is adding value to end of variable eg. for path.

      Finally the issue seems to be "minor" but I lefted it open because Multijob was only "project model" to fail on this.

      Global properties in system preference:

      LD_LIBRARY_PATH
      /opt/oracle/instantclient:$LD_LIBRARY_PATH

       

      This is from end to change build name which also fails for OOM heap.

      Set build name.
      13:36:46 FATAL: Java heap space
      13:36:46 java.lang.OutOfMemoryError: Java heap space
      13:36:46 	at java.util.Arrays.copyOf(Arrays.java:3332)
      13:36:46 	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
      13:36:46 	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
      13:36:46 	at java.lang.StringBuilder.append(StringBuilder.java:136)
      13:36:46 	at hudson.Util.replaceMacro(Util.java:180)
      13:36:46 	at hudson.Util.replaceMacro(Util.java:146)
      13:36:46 	at hudson.EnvVars.resolve(EnvVars.java:343)
      13:36:46 	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:886)
      13:36:46 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:225)
      13:36:46 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:216)
      13:36:46 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:208)
      13:36:46 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:74)
      13:36:46 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:31)
      13:36:46 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$1.tearDown(BuildNameSetter.java:64)
      13:36:46 	at hudson.model.Build$BuildExecution.doRun(Build.java:174)
      13:36:46 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      13:36:46 	at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
      13:36:46 	at hudson.model.Run.execute(Run.java:1737)
      13:36:46 	at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      13:36:46 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      13:36:46 	at hudson.model.Executor.run(Executor.java:419)
      13:36:59 Notifying upstream projects of job completion
      

        Attachments

        1. Biggest objects 2,2GB for MultijobBuild.png
          Biggest objects 2,2GB for MultijobBuild.png
          315 kB
        2. Class based heap usage.png
          Class based heap usage.png
          175 kB
        3. job.xml
          31 kB
        4. job2.xml
          24 kB
        5. Reachability table of heap dump.png
          Reachability table of heap dump.png
          410 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                heikkisi Heikki Simperi
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: