Exception during periodic request cache cleanup – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch encounters an issue during its routine cleanup of the request cache. This could be due to insufficient memory, disk space, or a bug in the system. To resolve this, you can increase the memory allocation or disk space for Elasticsearch, ensure that the Elasticsearch version you’re using is up-to-date and bug-free, or disable the request cache if it’s not necessary for your use case. Additionally, checking the Elasticsearch logs can provide more specific information about the cause of the error.

This guide will help you check for common problems that cause the log ” Exception during periodic request cache cleanup: ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: indices, cache, request.

Log Context

Log “Exception during periodic request cache cleanup:” classname is IndicesService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            }

            try {
                this.requestCache.cleanCache();
            } catch (Exception e) {
                logger.warn("Exception during periodic request cache cleanup:"; e);
            }
            // Reschedule itself to run again if not closed
            if (closed.get() == false) {
                threadPool.scheduleUnlessShuttingDown(interval; ThreadPool.Names.SAME; this);
            }

 

 [ratemypost]