Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via oracle.com by Unknown author

    An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options -Xmx512M, this will immediately solve your OutOfMemoryError.

  2. ,
    via Stack Overflow by Eugene Yokota

    In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m.

    This should increase the memory heap for all the builds/projects. The above memory size is 1 GB.

Solutions on the web

via Stack Overflow by user2021147
, 1 year ago
via manifoldcf-user by Karl Wright, 2 years ago
via manifoldcf-user by Karl Wright, 2 years ago
via loggly.com by Unknown author, 1 year ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:2245)	at java.util.Arrays.copyOf(Arrays.java:2219)	at java.util.ArrayList.grow(ArrayList.java:242)	at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:216)	at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:208)	at java.util.ArrayList.add(ArrayList.java:440)	at java.lang.String.split(String.java:2288)	at java.lang.String.split(String.java:2355)	at StreamingEngine1$$anonfun$4$$anonfun$7.apply(StreamEngine1.scala:249)	at StreamingEngine1$$anonfun$4$$anonfun$7.apply(StreamEngine1.scala:249)	at scala.collection.Iterator$$anon$11.next(Iterator.scala:370)	at scala.collection.Iterator$class.foreach(Iterator.scala:742)	at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)	at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:59)	at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:104)	at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:48)	at scala.collection.TraversableOnce$class.to(TraversableOnce.scala:308)	at scala.collection.AbstractIterator.to(Iterator.scala:1194)	at scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:300)	at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1194)	at scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:287)	at scala.collection.AbstractIterator.toArray(Iterator.scala:1194)	at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:927)	at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:927)	at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)	at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)	at org.apache.spark.scheduler.Task.run(Task.scala:89)	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:744)