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 FEBRUARY 02, 2022

Applies to:

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

Symptoms

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

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(Arrays.java:3664) ~[?:1.8.0_241]
at java.lang.String.<init>(String.java:207) ~[?:1.8.0_241]
at java.lang.StringBuilder.toString(StringBuilder.java:407) ~[?:1.8.0_241]
at com.fasterxml.jackson.core.util.TextBuffer.contentsAsString(TextBuffer.java:356) ~[jackson-core-2.8.1.jar:2.8.1]
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString(UTF8StreamJsonParser.java:2466) ~[jackson-core-2.8.1.jar:2.8.1]
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:315) ~[jackson-core-2.8.1.jar:2.8.1]



STEPS

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.

 

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution


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