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 chrismccracken
, 1 year ago
Requested array size exceeds VM limit
via feed-the-beast.com by Unknown author, 2 years ago
via Stack Overflow by Knows Not Much
, 2 years ago
via netbeans.org by Unknown author, 2 years ago
via GitHub by donghwan-shin
, 1 year ago
GC overhead limit exceeded
via Stack Overflow by dotwin
, 1 year ago
Requested array size exceeds VM limit
java.lang.OutOfMemoryError: Requested array size exceeds VM limit	at java.util.Arrays.copyOf(Arrays.java:3332)	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)	at java.lang.StringBuilder.append(StringBuilder.java:190)	at com.dotcms.repackage.org.apache.commons.io.output.StringBuilderWriter.write(StringBuilderWriter.java:138)	at com.dotcms.repackage.org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1365)	at com.dotcms.repackage.org.apache.commons.io.IOUtils.copy(IOUtils.java:1340)	at com.dotcms.repackage.org.apache.commons.io.IOUtils.copy(IOUtils.java:1287)	at com.dotcms.repackage.org.apache.commons.io.IOUtils.toString(IOUtils.java:502)	at com.dotmarketing.portlets.fileassets.business.FileAssetAPIImpl.getContentMetadataAsString(FileAssetAPIImpl.java:523)	at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toMap(ESMappingAPIImpl.java:345)	at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI.indexContentletList(ESContentletIndexAPI.java:327)	at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI.access$100(ESContentletIndexAPI.java:43)	at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI$1.run(ESContentletIndexAPI.java:297)	at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI.addContentToIndex(ESContentletIndexAPI.java:309)	at com.dotmarketing.common.reindex.ReindexThread.writeDocumentToIndex(ReindexThread.java:674)	at com.dotmarketing.common.reindex.ReindexThread.run(ReindexThread.java:260)