java.lang.OutOfMemoryError: Java heap space

SpringSource Issue Tracker | Yifeng Xiao | 4 years ago
  1. 0

    Put a 3G binary file test.ova to hdfs, following exception show: serengeti>fs put --from C:\serengeit\test.ova --to /tmp run HDFS shell failed. Message is: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.io.ByteArrayOutputStream.write(Unknown Source) at sun.net.www.http.PosterOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOut putStream.java:49) at java.io.DataOutputStream.write(Unknown Source) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:70) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:47) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:100) at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:230) at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:176) at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:118 3) at org.apache.hadoop.fs.FsShell.copyFromLocal(FsShell.java:130) at org.apache.hadoop.fs.FsShell.run(FsShell.java:1762) at org.springframework.data.hadoop.impala.hdfs.FsShellCommands.run(FsShe llCommands.java:399) at org.springframework.data.hadoop.impala.hdfs.FsShellCommands.put(FsShe llCommands.java:154) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.shell.support.util.ReflectionUtils.invokeMethod(R eflectionUtils.java:191) at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleE xecutionStrategy.java:64) at org.springframework.shell.core.SimpleExecutionStrategy.execute(Simple ExecutionStrategy.java:48) at org.springframework.shell.core.AbstractShell.executeCommand(AbstractS hell.java:223) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java: 478) at org.springframework.shell.core.JLineShell.run(JLineShell.java:156) at java.lang.Thread.run(Unknown Source)

    SpringSource Issue Tracker | 4 years ago | Yifeng Xiao
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Put a 3G binary file test.ova to hdfs, following exception show: serengeti>fs put --from C:\serengeit\test.ova --to /tmp run HDFS shell failed. Message is: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.io.ByteArrayOutputStream.write(Unknown Source) at sun.net.www.http.PosterOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOut putStream.java:49) at java.io.DataOutputStream.write(Unknown Source) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:70) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:47) at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:100) at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:230) at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:176) at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:118 3) at org.apache.hadoop.fs.FsShell.copyFromLocal(FsShell.java:130) at org.apache.hadoop.fs.FsShell.run(FsShell.java:1762) at org.springframework.data.hadoop.impala.hdfs.FsShellCommands.run(FsShe llCommands.java:399) at org.springframework.data.hadoop.impala.hdfs.FsShellCommands.put(FsShe llCommands.java:154) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.shell.support.util.ReflectionUtils.invokeMethod(R eflectionUtils.java:191) at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleE xecutionStrategy.java:64) at org.springframework.shell.core.SimpleExecutionStrategy.execute(Simple ExecutionStrategy.java:48) at org.springframework.shell.core.AbstractShell.executeCommand(AbstractS hell.java:223) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java: 478) at org.springframework.shell.core.JLineShell.run(JLineShell.java:156) at java.lang.Thread.run(Unknown Source)

    SpringSource Issue Tracker | 4 years ago | Yifeng Xiao
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Out of Memory Issue JRSwapFileVirtualizer

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

    Automated exception search integrated into your IDE

  5. 0

    MediaStreamSource and OutOfMemoryError

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    python_mllib_perf: java.lang.OutOfMemoryError: Java heap space

    GitHub | 1 year ago | Jetsonpaul
    java.lang.OutOfMemoryError: Java heap space

    1 unregistered visitors
    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

      Java heap space

      at java.util.Arrays.copyOf()
    2. Java RT
      BufferedOutputStream.write
      1. java.util.Arrays.copyOf(Unknown Source)
      2. java.io.ByteArrayOutputStream.write(Unknown Source)
      3. sun.net.www.http.PosterOutputStream.write(Unknown Source)
      4. java.io.BufferedOutputStream.write(Unknown Source)
      4 frames
    3. Hadoop
      FSDataOutputStream$PositionCache.write
      1. org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOutputStream.java:49)
      1 frame
    4. Java RT
      DataOutputStream.write
      1. java.io.DataOutputStream.write(Unknown Source)
      1 frame
    5. Hadoop
      FsShell.run
      1. org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:70)
      2. org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:47)
      3. org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:100)
      4. org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:230)
      5. org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:176)
      6. org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1183)
      7. org.apache.hadoop.fs.FsShell.copyFromLocal(FsShell.java:130)
      8. org.apache.hadoop.fs.FsShell.run(FsShell.java:1762)
      8 frames
    6. org.springframework.data
      FsShellCommands.put
      1. org.springframework.data.hadoop.impala.hdfs.FsShellCommands.run(FsShellCommands.java:399)
      2. org.springframework.data.hadoop.impala.hdfs.FsShellCommands.put(FsShellCommands.java:154)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    8. org.springframework.shell
      JLineShell.run
      1. org.springframework.shell.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)
      3. org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48)
      4. org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:223)
      5. org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:478)
      6. org.springframework.shell.core.JLineShell.run(JLineShell.java:156)
      6 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame