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

FATAL: Java heap space error in jenkins when executing http plugin in build job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      05:07:32 Started by user abhay
      05:07:32 [EnvInject] - Loading node environment variables.
      05:07:32 Building on master in workspace /var/lib/jenkins/workspace/redhat_7_4
      05:07:32 Run condition [Always] enabling prebuild for step [Execute shell]
      05:07:32 Run condition [Always] enabling prebuild for step [HTTP Request]
      05:07:32 Run condition [Never] preventing prebuild for step [Execute shell]
      05:07:32 Run condition [Never] preventing prebuild for step [Execute shell]
      05:07:32 Run condition [Never] preventing prebuild for step [Execute shell]
      05:07:32 Run condition [Never] preventing prebuild for step [Invoke Ansible Playbook]
      05:07:32 Run condition [Never] preventing prebuild for step [Invoke Ansible Playbook]
      05:07:32 Run condition [Never] preventing prebuild for step [Execute shell]
      05:07:32 Run condition [Never] preventing prebuild for step [Execute shell]
      05:07:32 [EnvInject] - Executing scripts and injecting environment variables after the SCM step.
      05:07:32 [EnvInject] - Injecting as environment variables the properties content
      05:07:32 image_name=OBS_U_RHEL_7.4
      05:07:32 instance_name=Test_rhel
      05:07:32
      05:07:32 [EnvInject] - Variables injected successfully.
      05:07:32 Run condition [Always] enabling perform for step [Execute shell]
      05:07:32 [redhat_7_4] $ /bin/bash -xe /tmp/jenkins3745127158858143993.sh
      05:07:32 + export image_name=OBS_U_RHEL_7.4
      05:07:32 + image_name=OBS_U_RHEL_7.4
      05:07:32 + export instance_name=Test_rhel
      05:07:32 + instance_name=Test_rhel
      05:07:32 + /opt/abhay/project/redhat_7_4/pass_variable.sh
      05:07:32 + echo 'instance_name: Test_rhel'
      05:07:32 + echo 'image_name: OBS_U_RHEL_7.4'
      05:07:32 Run condition [Always] enabling perform for step [HTTP Request]
      05:07:32 HttpMethod: GET
      05:07:32 URL: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1711.qcow2
      05:07:32 Sending request to url: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1711.qcow2
      05:07:33 Response Code: HTTP/1.1 200 OK
      05:08:18 FATAL: Java heap space
      05:08:18 java.lang.OutOfMemoryError: Java heap space
      05:08:18 at java.util.Arrays.copyOf(Arrays.java:3236)
      05:08:18 at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
      05:08:18 at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      05:08:18 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
      05:08:18 at com.google.common.io.ByteStreams.copy(ByteStreams.java:197)
      05:08:18 at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:236)
      05:08:18 at jenkins.plugins.http_request.ResponseContentSupplier.<init>(ResponseContentSupplier.java:63)
      05:08:18 at jenkins.plugins.http_request.HttpRequestExecution.executeRequest(HttpRequestExecution.java:286)
      05:08:18 at jenkins.plugins.http_request.HttpRequestExecution.authAndRequest(HttpRequestExecution.java:231)
      05:08:18 at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:195)
      05:08:18 at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:67)
      05:08:18 at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      05:08:18 at jenkins.plugins.http_request.HttpRequest.perform(HttpRequest.java:328)
      05:08:18 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      05:08:18 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
      05:08:18 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      05:08:18 at org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder.perform(SingleConditionalBuilder.java:108)
      05:08:18 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      05:08:18 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      05:08:18 at hudson.model.Build$BuildExecution.build(Build.java:206)
      05:08:18 at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      05:08:18 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      05:08:18 at hudson.model.Run.execute(Run.java:1815)
      05:08:18 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      05:08:18 at hudson.model.ResourceController.execute(ResourceController.java:97)
      05:08:18 at hudson.model.Executor.run(Executor.java:429)
      05:08:18 Finished: FAILURE

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Without heap dump and Jenkins/plugin versions it is impossible to say what actually causes the issue. Maybe there is just not enough memort. Please collect the heapdump and triage which objects leak

          Show
          oleg_nenashev Oleg Nenashev added a comment - Without heap dump and Jenkins/plugin versions it is impossible to say what actually causes the issue. Maybe there is just not enough memort. Please collect the heapdump and triage which objects leak
          Hide
          janario Janario Oliveira added a comment -

          it is related to http plugin

          You are download a big file, try this option
          > responseHandle: 'NONE'

          By default, for compatibility reasons, the plugin opens an stream

          I have some plans to break compatibility on this, but for now I'll add a WARN log to use the other option

          Let us know if it works

          Show
          janario Janario Oliveira added a comment - it is related to http plugin You are download a big file, try this option > responseHandle: 'NONE' By default, for compatibility reasons, the plugin opens an stream I have some plans to break compatibility on this, but for now I'll add a WARN log to use the other option Let us know if it works
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Sorry, I have restored the classification

          Show
          oleg_nenashev Oleg Nenashev added a comment - Sorry, I have restored the classification
          Hide
          janario Janario Oliveira added a comment -

          Closing for now,

          Let us know if it was fixed or give more details if it is not

          Show
          janario Janario Oliveira added a comment - Closing for now, Let us know if it was fixed or give more details if it is not

            People

            Assignee:
            janario Janario Oliveira
            Reporter:
            nidhibhatnagar2007 NIDHI BHATNAGAR
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: