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 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 Google Groups by Peter Luttrell, 1 year ago
via Stack Overflow by joshuar
, 2 years ago
Requested array size exceeds VM limit
via Stack Overflow by umainyosu
, 1 year ago
via by Unknown author, 1 year ago
Requested array size exceeds VM limit java.util.Arrays.copyOf( java.lang.AbstractStringBuilder.expandCapacity( java.lang.AbstractStringBuilder.ensureCapacityInternal
via Stack Overflow by Jinfeng
, 2 years ago
via GitHub by julie-sullivan
, 2 years ago
Requested array size exceeds VM limit
java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java.util.Arrays.copyOf( at java.lang.AbstractStringBuilder.expandCapacity( at java.lang.AbstractStringBuilder.ensureCapacityInternal( at java.lang.AbstractStringBuilder.append( at java.lang.StringBuffer.append( at at at$BufferedLineIterator.hasNext(BufferedSource.scala:72) at scala.collection.Iterator$JoinIterator.hasNext(Iterator.scala:211) at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:192) at scala.collection.Iterator$class.foreach(Iterator.scala:893) at scala.collection.Iterator$ConcatIterator.foreach(Iterator.scala:168) at io.gatling.charts.stats.LogFileReader.firstPass(LogFileReader.scala:86) at$gatling$charts$stats$LogFileReader$$$anonfun$8(LogFileReader.scala:125) at io.gatling.charts.stats.LogFileReader$lambda$$x1$1.apply(LogFileReader.scala:125) at io.gatling.charts.stats.LogFileReader$lambda$$x1$1.apply(LogFileReader.scala:125) at io.gatling.charts.stats.LogFileReader.parseInputFiles(LogFileReader.scala:63) at io.gatling.charts.stats.LogFileReader.<init>(LogFileReader.scala:125) at at at at$.start(Gatling.scala:57) at$.fromArgs(Gatling.scala:49) at$.main(Gatling.scala:43) at