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 Oracle Community by konstantin.gudjev, 1 year ago
via Google Groups by Michael Hunger, 8 months ago
via Google Groups by ZiglioNZ via StackOverflow, 3 months ago
via nutch-user by Felix Zimmermann, 2 years ago
via nutch-user by BELLINI ADAM, 2 years ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:2882)	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)	at java.lang.StringBuffer.append(StringBuffer.java:306)	at java.io.StringWriter.write(StringWriter.java:77)	at java.io.PrintWriter.write(PrintWriter.java:382)	at com.thoughtworks.xstream.core.util.QuickWriter.flush(Unknown Source)	at com.thoughtworks.xstream.core.util.QuickWriter.write(Unknown Source)	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.endOfLine(Unknown Source)	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.finishTag(Unknown Source)	at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.startNode(Unknown Source)	at com.thoughtworks.xstream.io.path.PathTrackingWriter.startNode(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.visit(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(Unknown Source)	at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(Unknown Source)	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(Unknown Source)	at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(Unknown Source)	at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.visit(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(Unknown Source)	at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(Unknown Source)	at com.atlassian.bamboo.persister.xstream.ConverterDecorator.marshal(ConverterDecorator.java:27)	at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(Unknown Source)	at com.thoughtworks.xstream.core.TreeMarshaller.start(Unknown Source)	at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(Unknown Source)	at com.thoughtworks.xstream.XStream.marshal(Unknown Source)	at com.thoughtworks.xstream.XStream.toXML(Unknown Source)	at com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister.toXML(AbstractXStreamPersister.java:167)	at com.atlassian.bamboo.persister.file.XStreamBuildPersister.saveBuildResults(XStreamBuildPersister.java:150)	at com.atlassian.bamboo.persister.CachedBuildPersisterDecorator.saveBuildResults(CachedBuildPersisterDecorator.java:128)	at com.atlassian.bamboo.persister.file.FileBasedPersister.addBuildResults(FileBasedPersister.java:350)