Briefly, this error occurs when Elasticsearch terminates a task due to excessive resource consumption or when it’s taking too long to complete. This could be due to insufficient system resources, improper configuration, or inefficient queries. To resolve this, you can increase system resources (like memory or CPU), optimize your Elasticsearch configuration for better performance, or improve the efficiency of your queries. Additionally, consider implementing a timeout for long-running tasks to prevent them from consuming too many resources.
This guide will help you check for common problems that cause the log ” [{}] Killing job ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “[{}] Killing job” classname is TransportKillProcessAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
CancellableTask actionTask; KillProcessAction.Request request; JobTask jobTask; ActionListenerlistener ) { logger.info("[{}] Killing job"; jobTask.getJobId()); auditor.info(jobTask.getJobId(); Messages.JOB_AUDIT_KILLING); try { jobTask.killJob("kill process (api)"); listener.onResponse(new KillProcessAction.Response(true)); } catch (Exception e) {