Running graceful exit on windows – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when Elasticsearch is being shut down in a controlled manner on a Windows system. This is not necessarily an error, but a notification that Elasticsearch is closing all active connections and freeing up resources before shutting down. If this is unexpected, check your system’s scheduled tasks or scripts that might be triggering this. To resolve, ensure Elasticsearch is running as a service so it remains active. If it’s a memory issue, consider increasing the heap size. Also, check for any third-party applications that might be interfering with Elasticsearch.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” running graceful exit on windows ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: bootstrap.

Log Context

Log “running graceful exit on windows” classname is Elasticsearch.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        if (ctrlHandler) {
            Natives.addConsoleCtrlHandler(new ConsoleCtrlHandler() {
                @Override
                public boolean handle(int code) {
                    if (CTRL_CLOSE_EVENT == code) {
                        logger.info("running graceful exit on windows");
                        shutdown();
                        return true;
                    }
                    return false;
                }

 

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?

Get expert answers on Elasticsearch/OpenSearch