java.lang.OutOfMemoryError: Java heap space

Stack Overflow | septra | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Java heap space error when installing gerrit2.6 on linux centos

    Google Groups | 4 years ago | mani chandel
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Neo4j raises java.lang.OutOfMemory exception when inserts large data

    codedmi.com | 2 years ago
    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

    Java heap space

    at java.util.Arrays.copyOfRange()
  2. Java RT
    StringBuilder.toString
    1. java.util.Arrays.copyOfRange(Arrays.java:2694)
    2. java.lang.String.<init>(String.java:203)
    3. java.lang.StringBuilder.toString(StringBuilder.java:405)
    3 frames
  3. Scala
    StringContext.s
    1. scala.StringContext.standardInterpolator(StringContext.scala:125)
    2. scala.StringContext.s(StringContext.scala:90)
    2 frames
  4. Spark Project SQL
    SQLExecution$.withNewExecutionId
    1. org.apache.spark.sql.execution.QueryExecution.toString(QueryExecution.scala:70)
    2. org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:52)
    2 frames
  5. org.apache.spark
    InsertIntoHadoopFsRelation.run
    1. org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelation.run(InsertIntoHadoopFsRelation.scala:108)
    1 frame
  6. Spark Project SQL
    SparkPlan$$anonfun$execute$5.apply
    1. org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:58)
    2. org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:56)
    3. org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:70)
    4. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$5.apply(SparkPlan.scala:132)
    5. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$5.apply(SparkPlan.scala:130)
    5 frames
  7. Spark
    RDDOperationScope$.withScope
    1. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
    1 frame
  8. Spark Project SQL
    QueryExecution.toRdd
    1. org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:130)
    2. org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:55)
    3. org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:55)
    3 frames
  9. org.apache.spark
    ResolvedDataSource$.apply
    1. org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:256)
    1 frame
  10. Spark Project SQL
    DataFrameWriter.parquet
    1. org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:148)
    2. org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:139)
    3. org.apache.spark.sql.DataFrameWriter.parquet(DataFrameWriter.scala:334)
    3 frames
  11. app
    Application.main
    1. app.Application$.main(App.scala:156)
    2. app.Application.main(App.scala)
    2 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  13. Spark
    SparkSubmit.main
    1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
    2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
    3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
    4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
    5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    5 frames