Failed to refresh job memory requirements – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch fails to update the memory requirements for a specific job, possibly due to insufficient resources or a configuration issue. To resolve this, you can try increasing the memory allocation for Elasticsearch, ensuring that the job configuration is correct, or checking for any underlying system issues that may be causing the failure. Additionally, you can also try restarting the Elasticsearch service to see if the issue persists.

This guide will help you check for common problems that cause the log ” Failed to refresh job memory requirements ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, memory, refresh.

Log Context

Log “Failed to refresh job memory requirements” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        if (isMaster) {
            try {
                ActionListener listener = ActionListener.wrap(
                    aVoid -> logger.trace("Job memory requirement refresh request completed successfully");
                    e -> logIfNecessary(() -> logger.warn("Failed to refresh job memory requirements"; e))
                    .execute(() -> refresh(clusterService.state().getMetadata().custom(PersistentTasksCustomMetadata.TYPE); listener));
                return true;
            } catch (EsRejectedExecutionException e) {


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?