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 GitHub by francisdb
, 1 year ago
via GitHub by bzz
, 1 year ago
via YouTrack by Unknown author, 2 years ago
Java heap space
via GitHub by codeanticode
, 2 years ago
via gump-general by gump@vmgump.apache.org, 2 years ago
java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.lang.StringCoding.safeTrim(StringCoding.java:79) at java.lang.StringCoding.access$300(StringCoding.java:50) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:305) at java.lang.StringCoding.encode(StringCoding.java:344) at java.lang.String.getBytes(String.java:918) at akka.util.CompactByteString$.apply(ByteString.scala:564) at akka.util.ByteString$.apply(ByteString.scala:50) at play.api.mvc.Codec$$anonfun$javaSupported$1.apply(Results.scala:294) at play.api.mvc.Codec$$anonfun$javaSupported$1.apply(Results.scala:294) at play.api.http.DefaultWriteables$$anonfun$writeableOf_JsValue$1.apply(Writeable.scala:95) at play.api.http.DefaultWriteables$$anonfun$writeableOf_JsValue$1.apply(Writeable.scala:95) at play.api.http.Writeable.toEntity(Writeable.scala:20) at play.api.mvc.Results$Status.apply(Results.scala:377) at controllers.ResourceController$$anonfun$series$1$$anonfun$apply$8$$anonfun$apply$9.apply(ResourceController.scala:79) at controllers.ResourceController$$anonfun$series$1$$anonfun$apply$8$$anonfun$apply$9.apply(ResourceController.scala:78) at scala.util.Success$$anonfun$map$1.apply(Try.scala:237) at scala.util.Try$.apply(Try.scala:192) at scala.util.Success.map(Try.scala:237) at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237) at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:39) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:409) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)