java.lang.OutOfMemoryError

Requested array size exceeds VM limit

Solutions on the web2125

  • via Coderanch by Constantine Mosch, 1 year ago
    Requested array size exceeds VM limit
  • via Eclipse Bugzilla by kaloyan.r, 11 months ago
    Requested array size exceeds VM limit
  • via GitHub by chrismccracken
    , 11 months ago
    Requested array size exceeds VM limit
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    3 times, 3 months ago
    4 times, 9 months ago
    Unknown user
    Once, 10 months ago
    2 times, 10 months ago
    58 more bugmates