Instances running Eureka through Patch 3 will encounter an out-of-memory condition when a null or zero length string is entered into the search field. One or more error messages indicating that the Java memory utilization is high may also appear in the logs. The out-of-memory can result in unexpected node behavior, performance degradation, or an outage.

Steps to Reproduce

  1. Go to Self-Service > Service Catalog.
  2. Click in the search field.
  3. Enter a space and click the search icon.
    The following message appears in the log:

    SEVERE *** ERROR *** OutOfMemoryError: Java heap space


There are two workarounds available until the instance can be upgraded to a version listed in the Fixed In section below.

Option 1: Disable Search Suggest

The admin can disable the Search Suggest feature by turning off the system property. Using the UI, go to System Properties > Service Catalog and search for the line Specify whether search suggestions should be enabled and uncheck the selection box below it. To access the property directly, use the link below, inserting your instance name, and set the property value to false.


Option 2: Partially Disable

This second option uses a Global UI script to block the trigger of search suggestions when an empty string is detected. This option leaves the search suggest feature on for all other search scenarios.

To enable this workaround, go to System UI > UI Scripts and create or edit the script described below:

  1. Name: Fix for empty term and autocomplete
  2. Global: true
  3. Script Content: Note the bold lines indicate lines to be added if modifying an existing script
function acReferenceKeyPress(element, evt) {
  if (!element.ac)
    return true;
  var s = element.ac._getSearchChars();
  if (s == "")
    return true;

  var rv =  element.ac.keyPress(evt);
  if (rv == false)
    evt.cancelBubble = true;

  return rv;

function acReferenceKeyUp(element, evt) {
  if (!element.ac)
    return true;

  var s = element.ac._getSearchChars();
  if (s == "")
    return true;

  return element.ac.keyUp(evt);

Related Problem: PRB604099

Seen In

Eureka Patch 1
Eureka Patch 1 Hot Fix 2
Eureka Patch 10 Hot Fix 1
Eureka Patch 2
Eureka Patch 2 Hot Fix 1
Eureka Patch 3 Hot Fix 1
Fuji Patch 2 Hot Fix 1
Eureka Patch 2

Fixed In

Eureka Patch 4

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-07-25 12:30:41