java.lang.OutOfMemoryError: Failed to allocate a 147687689 byte allocation with 16777216 free bytes and 83MB until OOM

GitHub | isabsent | 2 months ago
  1. 0

    OutOfMemory when uploading a huge file.

    GitHub | 2 months ago | isabsent
    java.lang.OutOfMemoryError: Failed to allocate a 147687689 byte allocation with 16777216 free bytes and 83MB until OOM
  2. 0

    Is there any way to handle Java heap space exception

    Stack Overflow | 2 years ago
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    java.lang.OutOfMemoryError when processing large pgp file

    Stack Overflow | 3 years ago | David
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Out of memory error while read a file to byte array using apache io utils

    Stack Overflow | 1 year ago | Bhuvanesh Waran
    java.lang.OutOfMemoryError: Java heap space at org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteAr rayOutputStream.java:322)
  6. 0

    the log: [08/24/11 13:36:28] [SSH] Opening SSH connection to 10.0.0.172:22. [08/24/11 13:36:28] [SSH] Authenticating as jenkins with /var/lib/jenkins/.ssh/id_rsa. [08/24/11 13:36:28] [SSH] Authentication successful. [08/24/11 13:36:28] [SSH] The remote users environment is: BASH=/bin/bash BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="2" [2]="8" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.2.8(1)-release' DIRSTACK=() EUID=1001 GROUPS=() HOME=/home/jenkins HOSTNAME=jasmine HOSTTYPE=x86_64 IFS=$' \t\n' LANG=en_US.UTF-8 LOGNAME=jenkins MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games PIPESTATUS=([0]="0") PPID=2225 PS4='+ ' PWD=/home/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.0.0.61 58049 22' SSH_CONNECTION='10.0.0.61 58049 10.0.0.172 22' TERM=dumb UID=1001 USER=jenkins XDG_SESSION_COOKIE=1efab6c78ed99d8f60f23b1200000004-1314185788.699084-472866313 _=']' [08/24/11 13:36:29] [SSH] Checking java version of java Couldn't figure out the Java version of java bash: java: command not found [08/24/11 13:36:29] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java bash: /usr/bin/java: No such file or directory [08/24/11 13:36:29] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java bash: /usr/java/default/bin/java: No such file or directory [08/24/11 13:36:29] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java bash: /usr/java/latest/bin/java: No such file or directory [08/24/11 13:36:29] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java bash: /usr/local/bin/java: No such file or directory [08/24/11 13:36:29] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java bash: /usr/local/java/bin/java: No such file or directory [08/24/11 13:36:29] [SSH] Checking java version of /home/jenkins/jdk/bin/java Couldn't figure out the Java version of /home/jenkins/jdk/bin/java bash: /home/jenkins/jdk/bin/java: No such file or directory Linux jasmine 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Installing JDK jdk-6u16-oth-JPR@CDS-CDS_Developer Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/6u16-b01//jdk-6u16-linux-x64.bin ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: Java heap space at org.apache.commons.io.output.ByteArrayOutputStream.needNewBuffer(ByteArrayOutputStream.java:128) at org.apache.commons.io.output.ByteArrayOutputStream.write(ByteArrayOutputStream.java:158) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1026) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:218) at com.gargoylesoftware.htmlunit.WebResponseData.getBody(WebResponseData.java:133) at com.gargoylesoftware.htmlunit.WebResponseData.<init>(WebResponseData.java:86) at com.gargoylesoftware.htmlunit.HttpWebConnection.newWebResponseDataInstance(HttpWebConnection.java:443) at com.gargoylesoftware.htmlunit.HttpWebConnection.makeWebResponse(HttpWebConnection.java:423) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:100) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1513) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1513) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:328) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389) at hudson.tools.JDKInstaller.locate(JDKInstaller.java:349) at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:345) at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:282) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:234) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Jenkins JIRA | 5 years ago | Andreas Lappe
    java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Failed to allocate a 147687689 byte allocation with 16777216 free bytes and 83MB until OOM

      at org.apache.commons.io.output.ByteArrayOutputStream.toByteArray()
    2. Commons IO
      IOUtils.toByteArray
      1. org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:322)
      2. org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:463)
      2 frames