Reducing requested field data cache size of to the maximum allowed size of – How to solve related issues

Opster Team

Feb-20, Version: 1.7-8.0

Before you begin reading this guide, we recommend you run Elasticsearch Error Check-Up which analyzes 2 JSON files to detect many errors.

Briefly, this error occurs when the requested field data cache size is too large and needs to be reduced to the maximum allowed size, which can cause issues with the operation of Elasticsearch. To resolve this issue, you can try to reduce the requested field data cache size to the maximum allowed size, or check the system configuration for errors.

To easily locate the root cause and resolve this issue try AutoOps for Elasticsearch & OpenSearch. It diagnoses problems by analyzing hundreds of metrics collected by a lightweight agent and offers guidance for resolving them. Take a self-guided product tour to see for yourself (no registration required).

This guide will help you check for common problems that cause the log ” Reducing requested field data cache size of to the maximum allowed size of ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cache, fielddata and indices.

Log Context

Log “reducing requested field data cache size of [{}] to the maximum allowed size of [{}]” classname is IndicesFieldDataCache.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         super(settings);
        this.indicesFieldDataCacheListener = indicesFieldDataCacheListener;
        String size = componentSettings.get("size"; "-1");
        long sizeInBytes = componentSettings.getAsMemory("size"; "-1").bytes();
        if (sizeInBytes > ByteSizeValue.MAX_GUAVA_CACHE_SIZE.bytes()) {
            logger.warn("reducing requested field data cache size of [{}] to the maximum allowed size of [{}]"; new ByteSizeValue(sizeInBytes);
                    ByteSizeValue.MAX_GUAVA_CACHE_SIZE);
            sizeInBytes = ByteSizeValue.MAX_GUAVA_CACHE_SIZE.bytes();
            size = ByteSizeValue.MAX_GUAVA_CACHE_SIZE.toString();
        }
        final TimeValue expire = componentSettings.getAsTime("expire"; null);




 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content