My Oracle Support Banner

Doing Full Document Crawl with Elasticsearch in WebCenter Portal is Crashing with Error: java.lang.OutOfMemoryError: Java heap space (Doc ID 2840731.1)

Last updated on JUNE 10, 2024

Applies to:

Oracle WebCenter Portal - Version and later
Oracle WebCenter Portal for OCI - Version and later
Information in this document applies to any platform.


Doing a full document crawl with Elasticsearch in WebCenter Portal crashes on Elasticsearch with OutOfMemory error.


The Elasticsearch log shows the following error:

[<DATE-TIME>][INFO ][o.w.s.e.c.AttachmentProcessor] AttachmentProcessor.execute: Starting content crawling for the document:{dDocName=<DOCUMENT_NAME>, fileName=<FILE_NAME>, docUrl=<DOCUMENT_URL>
DATE-TIME>][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [<HOSTNAME>] fatal error in thread [elasticsearch[<HOSTNAME>][index][T#1]], exiting
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange( ~[?:1.8.0_241]
at java.lang.String.<init>( ~[?:1.8.0_241]
at java.lang.StringBuilder.toString( ~[?:1.8.0_241]
at com.fasterxml.jackson.core.util.TextBuffer.contentsAsString( ~[jackson-core-2.8.1.jar:2.8.1]
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString( ~[jackson-core-2.8.1.jar:2.8.1]
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText( ~[jackson-core-2.8.1.jar:2.8.1]


The issue can be reproduced at will with the following steps:

  1. Upload many documents to WebCenter portal (e.g.: ~ 500k+ documents).
  2. Go to Administration > Settings > Tools and Services > Search.
  3. Start a full documents crawl.  Eventually the error will appear in the Elasticsearch log.





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.